import random score=0 answer = "y" while answer != "n": dice1 = random.randint( 1, 6) dice2 = random.randint(1, 6) if dice1+dice2 == 2: print("Snake eyes!!") print("GAME OVER") score= 0 answer = "n" else: print(score) answer=input("play again? y/n") score = score +dice1+dice2