import random gameover = 1 rollcount = 1 highestroll = 0 while gameover == 1: dice1 = random.randint(1, 6) dice2 = random.randint(1, 6) print("Roll", rollcount, "-----------------") print(" You rolled a", dice1, "and a", dice2) print("Your score is", dice1 + dice2) if dice1 + dice2 > highestroll: highestroll = dice1 + dice2 if dice1 == 1 and dice2 == 1: print("Snake eyes!!!") gameover = 0 else: answer = input("Roll again (y/n)? ") if answer != "y": gameover = 0 rollcount += 1 print("Game Over --------------") print("Your highest score was", highestroll)