dkyoseff

Conditional Statements Advanced - Lab / 03. Animal Type

Jul 25th, 2022
958
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.  
  6. elif animal == "crocodile" or animal == "tortoise" or animal == "snake":
  7.     print("reptile")
  8.  
  9. else:
  10.     print("unknown")
Advertisement
Add Comment
Please, Sign In to add comment