Advertisement
fmtmalvin

URI 1049

Sep 19th, 2021
835
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1. a = input()
  2. b = input()
  3. c = input()
  4. if a == "vertebrado":
  5.     if b == "ave":
  6.         if c == "carnivoro":
  7.             print("aguia")
  8.         elif c == "onivoro":
  9.             print("pomba")
  10.     elif b == "mamifero":
  11.         if c == "onivoro":
  12.             print("homem")
  13.         elif c == "herbivoro":
  14.             print("vaca")
  15. elif a == "invertebrado":
  16.     if b == "inseto":
  17.         if c == "hematofago":
  18.             print("pulga")
  19.         elif c == "herbivoro":
  20.             print("lagarta")
  21.     elif b == "anelideo":
  22.         if c == "hematofago":
  23.             print("sanguessuga")
  24.         elif c == "onivoro":
  25.             print("minhoca")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement