import random play="y" roll=1 score=0 while play!="n": dice1 = random.randint(1,6) dice2 = random.randint(1,6) print() print ("Roll", roll, "-----------------") print ("You roll", dice1, "and", dice2) score=score + dice1 + dice2 if dice1==1 and dice2==1: print("snake eyes!") score=0 print() print("Game Over --------------") print("your final score:", score) play="n" else: print ("Your score is", score) play=input("Roll again (y/n)?") if play =="n": print() print("Game Over --------------") print("your final score:", score) roll=roll+1