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