import random count = 0 for i in range(0,99): x = random.randint(1, 6) if x == 6: count = count + 1 print(count)