Okay. I am creating a program for school and I am a beginner to python. Here is my code:
intro = input("Want to play a game of number guess? ")
while intro == 'yes':
print("\nOkay. Just guess the number I am thinking of from 1 to 10.)
if intro != 'yes' or 'no':
print("\nThat command is not in my program. Try again: ")
intro = input() #This is supposed to let you retype your answer to the question if you did not type in no or yes
if intro == 'no':
choice = exit()
slot = input("\nInsert 50 cents into the coin slot to start. ")
while slot != 'insert coin' or 'insert' or 'insert coins':
print("What are you trying to do? Try again: ")
slot = input()
if slot == 'insert':
print("What are you inserting?")
slot = input()
if slot == 'insert coin':
print("Quit trying to nickle and dime me! \nTWO coins (two quarters = 50 cents - duh)")
slot = input()
if slot == 'insert coins':
print("\a\a\aBING BING BING!! Thank you for playing Jessica's Number \nGame. We will start in: \n3")
print("2")
print("1")
print("....GO!! \nYou have: ", points,"points")
guess = int(input("\nEnter your guess: "))
So what I need help with is that when I type in a wrong answer to the yes or no question in the beginning it's supposed to let you know that you have to write yes or no and it lets you type it in until you get it right and when you type yes or no the program restarts all over again and wont go to the next section. Can someone help me with this? (sorry i didn't know how to explain it well)