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