roll = 1 done = 0 score = 0 import random while done == 0: print('') print('Roll', roll, '--------------') first = random. randint(1, 6) second = random. randint(1, 6) print('You roll', first, 'and', second) if first + second == 2: print('Snake eyes!!!') print('') score = 0 done = 1 else: score = score+first+second print('Your score is', score) print('') roll = roll + 1 y_n = input("Roll again ('n' means stop, everything else means continue)? ") if y_n == 'n': done = 1 print('Game Over -----------------') print('Your final score:', score)