import random score = 0 choice = "y" while choice == "y": dice1 = random.randint(1, 6) dice2 = random.randint(1, 6) score = dice1 + dice2 + score print("You rolled", dice1, "and", dice2) print("Your score is", score) print("Your Total score is", score) if dice1 + dice2 == 2: print("Snake Eyes! Game Over") print("Your final score", score) choice = input("Play again (y/n): ") score = 0 else : dice1 = random.randint( 1, 6 ) dice2 = random.randint( 1, 6 ) choice = input("Roll again (y/n): ")