import random answer = "y" score = 0 while answer != "n": dice1 = random.randint( 1, 6 ) dice2 = random.randint( 1, 6 ) score = score+dice1+dice2 print (dice1,dice2) print (score) answer = input("Play Again? ") if dice1+dice2 != 2: score=score+dice1+dice2 print(score) answer=input("Play Again y/n? ") else : print ("Snake Eyes. You lose")