Advertisement
simeonshopov

Animal type

Sep 20th, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. animal = input()
  2.  
  3. if animal == "dog":
  4.   print("mammal")
  5. elif animal in ["crocodile", "tortoise", "snake"]:
  6.   print("reptile")
  7. else:
  8.   print("unknown")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement