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