import random times = 1 total = 0 roll = "y" while roll != "n": dice1 = random.randint( 1, 6 ) dice2 = random.randint( 1, 6 ) print("Roll", times,"-----------------") if dice1 == 1 and dice2 == 1: print("You roll", dice1, "and", dice2) total = 0 print("Snake eyes!!! \n\nGame Over ---------------\nYour final score:", total) break else: print("You roll",dice1, "and", dice2) total = total+dice1+dice2 times = times+1 print("Score:", total) roll = input("Do you want to play again? ") if total == 0: print("Wow your unlucky aren't you well thanks for playing :o") else: print("Well done ;)\n","Your final score:", total)