Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- animal = input()
- # dog -> mammal
- # crocodile, tortoise, snake -> reptile
- # other -> unknown
- if animal == "dog":
- print('mammal')
- elif animal == "crocodile" or animal == "tortoise" or animal == "snake":
- print('reptile')
- else:
- print('unknown')
RAW Paste Data