Investigate
Look at the code on the right.
Run it and see what it does.
Click on the pencil icon at the top to see the code again.
Run the program and see what it does
Can you add your own elif statement on line12?
Run the program. What does this do?
Can you add your own question into this animal guesser?
A popular version of this program is quite popular called Akinator. Can you add more to make it better?
myAnswer = input("Do you want a twix? y/n")
myAnswer = input("How about a Mars Bar?")
print("Here is a Mars Bar.")
#Change line 13 to ask for a different type of chocolate bar.
# Use another nested if. Yes for that chocolate, else give them nothing.
print("Okay... have a bounty bar then.")
#Try running this program and get as many different outputs you can.
print("Think of an animal. I can guess your animal with a few guesses.")
legs = input("Do your animal have 4 legs? y/n")
if legs == "y" or legs == "yes":
whiskers = input("Does your animal have whiskers? y/n")
if whiskers == "y": #Can you make it so it accepts "yes" as well?
print("Your animal is a cat!")
print("Your animal is a dog!")
legs = input("Does your animal have legs at all? y/n ")
wings = input("Does it have wings? y/n ")
#Change the line below to ask another question - such as if it has a tail
print("It must be a monkey ")
print("I am really Good, aren't I?")