I\'m having trouble with a code where I need to roll a six-sided die 1000 times and then return a list of how many times each number on the die was rolled.
The code
import random def dice(): print random.randint(1,6) dice()