Dice Rolling

Consider the following program for dice rolling.

import random
count = [ 0 ] * 6
for i in range(10):
    n = random.randint(1,6)
    count[n-1] = count[n-1] + 1

for i in range(6):
    print( i+1 , count[i] )

It will randomly generate 10 integers between 1 and 6; count the occurrence of each number; and then print out the statistics. Please modify the program so that the output will show a bar chart as follows. (Please notice that the following is only an example. The length of each bar may be different depending on the random number generated.)

1
2 *
3 *
4 **
5 ****
6 **

Mail your Python programs to your mailbox

After you developed and tested your Python programs on STU.ipv6.club.tw, you may use the following command to mail it back to your mail account, so that you can save it or submit as your homework. (But don't arbitrarily distribute it to your classmates.)