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