Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.60 KB | None | 0 0
  1. if __name__ == '__main__':
  2.  
  3.     eat_bugs = str(input("Does the plant eat bugs? "))
  4.  
  5.     if (eat_bugs == "yes"):
  6.  
  7.         trap_type = str(input("Does the plant use a pitfall trap or snap jaws? "))
  8.  
  9.         if (trap_type == "snap jaws"):
  10.             print("You've got a Dinoaea muscipula: the venus fly trap!")
  11.  
  12.         elif (trap_type == "pitfall trap"):
  13.             print("You've got a Nepenthes, make sure to not drink from these pitcher plants!")
  14.  
  15.     elif (eat_bugs == "no"):
  16.  
  17.         num_petals = int(input("How many petals does this thing have? "))
  18.  
  19.         if (num_petals == 3) or (num_petals == 5) or (num_petals > 7):
  20.  
  21.             num_flowers = str(input("Does it have multiple flowers? "))
  22.  
  23.             if (num_petals == 3) and (num_flowers == "no"):
  24.                 print("Irises are nice, and that's what you have.")
  25.  
  26.             elif (num_petals == 5) and (num_flowers == "no"):
  27.                 print ("Oh, you have an Orchidaceae, known by its friends as an Orchid.")
  28.  
  29.             elif (num_petals > 7) and (num_flowers == "yes"):
  30.  
  31.                 plant_height
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38. #        num_flowers = str(input("Does it have multiple flowers? "))
  39.  
  40.  
  41. #        if (num_petals == 3) and (num_flowers == "no"):
  42. #            print("Irises are nice, and that's what you have.")
  43.  
  44. #        elif (num_petals == 5) and (num_flowers == "no"):
  45. #            print ("Oh, you have an Orchidaceae, known by its friends as an Orchid. ")
  46.  
  47. #        elif (num_petals > 7):
  48.  
  49. #            plant_height = int(input("How many cm tall is it?"))
  50.  
  51. #            if (plant_height <= 300) and (num_flowers == "yes"):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement