New to python and creating my first program. I've tried running it and everything works fine, but I want to add a third option to the "yes" or "No" question. So if they say answered "moose", could I get the program to reject that answer and ask the question again?
Any help would be greatly appreciated.
#Is it raining outside?
raining = "yes"
umbrella = "yes"
stillraining = "yes"
israining = "yes"
spacestation ="yes"#This was supposed to be "haveumbrella", but for some reason that's not allowed but "spacestation" is?
print("Is it raining outside?")
print("")
isitraining = input()
if isitraining == "no":#Ask user if it is raining, if not, tell them to "Go outside" followed by exit statement
print("")
print("Go outside")
import sys
exit()
elif isitraining == "yes": #It is raining
print("")
print("Do you have an umbrella?") #Ask if they have an umbrella
print("")
spacestation = input()
if spacestation == "no":#If answer is no, tell them to "Stay inside and wait."
print("")
print("Stay inside and wait.")
print("")
while stillraining == "yes": # Ask use if it is still raining outside.
print("Is it still raining outside?")
stillraining = input()
print("")
print("Stay inside and wait")
print("")
if stillraining == "no":
print("")
print("Go outside")
exit()
elif spacestation == "yes":#If answer is yes, tell them to "Go outside."
print("")
print("Go outside.")
exit()