import random score = 0 while True: dice1, dice2 = random.randint(1, 6), random.randint(1, 6) if (dice1, dice2) == (1, 1): print("You roll 1 and 1. Snake eyes!!!") score = 0 break else: score += dice1 + dice2 print(f"You roll {dice1} and {dice2}. Your score is {score}") if input("Roll again (y/n)? ").lower() != 'y': break print("Game Over --------------") print(f"Your final score: {score}")