import random d = {} d = {1:0, 2:0, 3:0, 4:0, 5:0, 6:0} for i in range(100): x = random.randint(1,6) d[x] = d[x] + 1 print(d)