import random def roll_dice(): return random.randint(2, 6) def play_game(): score = 0 while True: roll1 = roll_dice() roll2 = roll_dice() total_roll = roll1 + roll2 if roll1 == 1 and roll2 == 1: print("Snake Eyes! You lose!") score = 0 break score += total_roll print(f"You rolled: {roll1} and {roll2}. Your current score is: {score}") choice = input("Roll again? (y/n): ").lower() if choice != 'y': break print(f"Your final score is: {score}") play_game()