I am trying to make a simple food game/questionnaire, and the code keeps printing both lines. I want to have it print one or the other, and no matter what I try, I get the same end result. I am also using Tkinter
. (Those of you that do not know, don't worry... This is for those that know what Tkinter
does/is.)
Here is my code:
def Waffles():
input ("Do you like Waffles? ")
if input is not ('yes'):
print ("Ok, so you don't like Waffles...")
input ("Do you like Pancakes? ")
if input is not ('no'):
print ("Then let's fix some!!!")
if input is ("no") or ("No"):
print ("Ok, so you don't like Pancakes...")
input ("Do you like French Toast? ")
if input is not ("no"):
print ("Then let's fix some!!!")
if input is not 'yes':
food = input ("Then what do you like? ")
print ("Oh! Ok.")
Here is what gets printed:
Do you like Waffles? no
Ok, so you don't like Waffles...
Do you like Pancakes? no
Then let's fix some!!!
Ok, so you don't like Pancakes...
Do you like French Toast? no
Then let's fix some!!!
Then what do you like? food
Oh! Ok.
Can you help me make this print one or the other? ("Then let's fix some!!!" and "Do you like __________").