Advertisement
Spocoman

03. Animal Type

Dec 19th, 2021
67
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. if animal == 'dog':
  3.     print('mammal')
  4. elif animal == 'crocodile' or animal == 'tortoise' or animal == 'snake':
  5.     print('reptile')
  6. else:
  7.     print('unknown')
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement