import random score = 0 answer = "y" while answer != "n" : dice1 = random.randint( 1, 6) dice2 = random.randint( 1, 6) score = score +dice1+dice2 print("your roll is", dice1, "and", dice2) print(score) answer=input("play again? [y/n]") if dice1 + dice2 == 2: print("HAHAHA SNAKE EYES... YOU DIE") answer = "n" else: print("Your final score is", score) answer = input("roll again? (y/n)")