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