import random trueroll=0 score= 0 while True: trueroll= trueroll+1 print ("roll",trueroll) roll = random.randint( 1, 6) roll2= random.randint(1,6) print("you roll", roll,"and", roll2 ) if roll==1 and roll2==1: print("Snake eyes!!!!") print(" ") print("game over") print("your final score is:", 0) break else: score+= roll + roll2 print("your score is", score) print(" ") ans=input("roll again (y/n)?") if ans==" n": print("game over") print("your final score is:", score) break