Advertisement
Merucial

Untitled

Feb 25th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. animal = input()
  2.  
  3. if animal == 'dog':
  4.     print('mammal')
  5. elif animal == 'crocodile' or animal == 'tortoise' or animal == 'snake':
  6.     print('reptile')
  7. else:
  8.     print('unknown')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement