I'm having trouble. I want the code to loop through and ask 'Hey, are you hungry?' but only if the hungry variable isn't True or False. However, whatever answer I type in, it acts as if it's True.
In my head, if I type a variation of yes, then hungry should be True and the code should stop. If I type a variation of no then the code should be False and stop. If I type neither of these then hungry will not be True or False and should loop through, asking the question again.
hungry = None
while hungry != True or False:
hungry = input('Hey, are you hungry?')
if hungry == 'yes' or 'ye' or 'y' or 'yeah':
print ('oh you hungry huh')
hungry = True
elif hungry == 'no' or 'n' or 'nah' or 'nope':
print ('no food for you then')
hungry = False
else:
print ('its a simple yes or no question pls')