Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.73 KB | None | 0 0
  1. animal_1 = input()
  2. animal_2 = input()
  3. animal_3 = input()
  4.  
  5. if animal_1 == "dog":
  6.     print("mammal")
  7. elif animal_1 == "crocodile":
  8.     print("reptile")
  9. elif animal_1 == "tortoise":
  10.     print("reptile")
  11. elif animal_1 == "snake":
  12.     print("reptile")
  13. else:
  14.     print("unknown")
  15.  
  16. if animal_2 == "dog":
  17.     print("mammal")
  18. elif animal_2 == "crocodile":
  19.     print("reptile")
  20. elif animal_2 == "tortoise":
  21.     print("reptile")
  22. elif animal_2 == "snake":
  23.     print("reptile")
  24. else:
  25.     print("unknown")
  26.  
  27. if animal_3 == "dog":
  28.     print("mammal")
  29. elif animal_3 == "crocodile":
  30.     print("reptile")
  31. elif animal_3 == "tortoise":
  32.     print("reptile")
  33. elif animal_3 == "snake":
  34.     print("reptile")
  35. else:
  36.     print("unknown")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement