desislava_topuzakova

03. Animal Type

Feb 21st, 2021
653
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. animal = input()
  2.  
  3. # dog -> mammal
  4. # crocodile, tortoise, snake -> reptile
  5. # other -> unknown
  6.  
  7. if animal == "dog":
  8.     print('mammal')
  9. elif animal == "crocodile" or animal == "tortoise" or animal == "snake":
  10.     print('reptile')
  11. else:
  12.     print('unknown')
RAW Paste Data