import random count = 1 total = 0 answer="y" print("Yo welcome to the dice game.") play=input("Do you wannt to play? (y/n)") while answer !="n": dice1 = random.randint( 1, 6 ) dice2 = random.randint( 1, 6 ) print("roll", count, "-----------------------") count = count + 1 total = total + dice1 + dice2 print("Your dice is", dice1, "and", dice2) if dice1 + dice2 == 2: print("HAHAHA SNAKE EYES... YOU DIE") answer = "n" else: print("Your final score is", total) answer = input("roll again? (y/n)") if answer == "n": print("GAME OVER-----------------------") print("Your score is", total)