Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if __name__ == '__main__':
- eat_bugs = str(input("Does the plant eat bugs? "))
- if (eat_bugs == "yes"):
- trap_type = str(input("Does the plant use a pitfall trap or snap jaws? "))
- if (trap_type == "snap jaws"):
- print("You've got a Dinoaea muscipula: the venus fly trap!")
- elif (trap_type == "pitfall trap"):
- print("You've got a Nepenthes, make sure to not drink from these pitcher plants!")
- elif (eat_bugs == "no"):
- num_petals = int(input("How many petals does this thing have? "))
- if (num_petals == 3) or (num_petals == 5) or (num_petals > 7):
- num_flowers = str(input("Does it have multiple flowers? "))
- if (num_petals == 3) and (num_flowers == "no"):
- print("Irises are nice, and that's what you have.")
- elif (num_petals == 5) and (num_flowers == "no"):
- print ("Oh, you have an Orchidaceae, known by its friends as an Orchid.")
- elif (num_petals > 7) and (num_flowers == "yes"):
- plant_height
- # num_flowers = str(input("Does it have multiple flowers? "))
- # if (num_petals == 3) and (num_flowers == "no"):
- # print("Irises are nice, and that's what you have.")
- # elif (num_petals == 5) and (num_flowers == "no"):
- # print ("Oh, you have an Orchidaceae, known by its friends as an Orchid. ")
- # elif (num_petals > 7):
- # plant_height = int(input("How many cm tall is it?"))
- # if (plant_height <= 300) and (num_flowers == "yes"):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement