import random dice1 = random.randint( 1,6 ) dice2 = random.randint( 1,6 ) rollnumber = 0 startprompt = input("Start? (y/n) ") if startprompt == "y": print(":)") elif startprompt =="n": print("GAME END") exit() else: print("GAME END") exit() game = int(1) score = 0 while game != int(0): rollnumber = rollnumber + 1 print("Roll", rollnumber, "-----------------") print("You roll:", dice1, "and", dice2 ) dice1 = random.randint( 1,6 ) dice2 = random.randint( 1,6 ) if dice1 + dice2 != 2: score = score + dice1 + dice2 print("Your score is:", score ) answer=input("play again y/n") else: print("Snake eyes you lose!") exit()