Here is my code from Python, I want occurence to be one big list. When I run it I just get back many one digit lists, I tried moving the print statement out of the loop, but I only get one answer. Any ideas?
import random
rolls = 0
occurrence = []
for i in range(0, 1000):
dice1 = random.randrange(1, 7)
dice2 = random.randrange(1, 7)
rolls = rolls + 1
occurrence = [dice1 + dice2]
print(occurrence)