I\'m new to python.
I want the program to ask
\"is Johnny hungry? True or false?\"
user inputs True
then print is
Code:
question = str(input("Is Johnny hungry? Response: "))
if question == "yes":
print("Johnny needs to eat food!")
if question == "no":
print("Johnny is full!")
Run:
Is Johnny hungry? Response: yes
Johnny needs to eat food!
Is Johnny hungry? Response: no
Johnny is full!
This is if you type something other than yes and no
Is Johnny hungry? Response: lkjdahkjehlhd
Nothing pops up/ there is no response