print('roll 1 -----------------') highscore = 0 import random score = 0 play = "y" while play == 'y' or play == 'Y' : dice1 = random.randint( 1, 6 ) dice2 = random.randint( 1, 6 ) print ('You rolled a', dice1, 'and a', dice2) if dice1 == 1 and dice2 == 1 : print('You lose! Snake eyes!') else : score = score + dice1 score = score + dice2 print ('Your total score is', score) play = input('Do you want to play again? Y/N') if play == n or play == N : print('Your score was ', score) if score > highscore: highscore = score