import random choice = "y" score = 0 while choice == "y" : print("Rolling... -----------------") dice1 = random.randint(1, 6) dice2 = random.randint(1, 6) score = dice1 + dice2 + score if dice1 and dice2 == 1 : print("You roll 1 and 1") print("Snake eyes!!!") print("Game over --------------") print("Your final score: 0") else : print("You roll", dice1, "and", dice2) print("Your score is:", score) choice = input("Roll again (y/n)? ") if choice == "n" : print("Game Over --------------") print("Your final score:", score)