import random def roll_dice(): return random.randint(1, 6) + random.randint(1, 6) def main(): score = 0 rolls = 0 print("Let's play the Dice Game!\n") while True: rolls += 1 print(f"Roll {rolls} -----------------") dice1 = random.randint(1, 6) dice2 = random.randint(1, 6) print(f"You roll {dice1} and {dice2}") total_score = dice1 + dice2 score += total_score if dice1 == 1 and dice2 == 1: print("\nSnake eyes!!!") score = 0 break print(f"Your score is {score}") choice = input("\nRoll again (y/n)? ").strip().lower() if choice != 'y': break print("\nGame Over --------------") print(f"Your final score: {score}") if __name__ == "__main__": main()