import random rolnum = 1 gamscore = 0 yuhnuh=input("Roll? (y/n) ") state=1 while state == 1: if yuhnuh=="y": print("Roll",rolnum) dice1 = random.randint( 1, 6 ) print(dice1) dice2 = random.randint( 1, 6 ) print(dice2) if dice1==1 and dice2==1: print("SNAKE EYES!!!") print("Game Over - - - - - - - - Final Score:", gamscore) state= 2 else: gamscore = gamscore + dice1 + dice2 rolnum = rolnum + 1 print("Score:", gamscore) yuhnuh=input("Roll? (y/n) ") if yuhnuh =="n": print("Game Over - - - - - - - - Score:", gamscore) state= 2 else: state=1