import random score=0 answer = "y" while answer != "n": Dice1 = random.randint(1,6) Dice2 = random.randint(1,6) if Dice1+Dice2 !=2: score=score+Dice1+Dice2 print(score) answer =input("Play again (y/n)? ") else: print("Snake eyes, you lose!") answer="n" score=0