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) print("Snake eyes!!! \n\nGame Over ~~~~~~~~~~~~~~~~ \nYour final score: 0") total = 0 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 luck sucks! thanks for playing!") else: print("Well done! your score:", total)