-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathanimal.py
More file actions
25 lines (20 loc) · 900 Bytes
/
animal.py
File metadata and controls
25 lines (20 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
tipo = input()
classe = input()
alimentacao = input()
if tipo == 'vertebrado' and classe == 'ave' and alimentacao == 'carnivoro':
animal = 'aguia'
if tipo == 'vertebrado' and classe == 'ave' and alimentacao == 'onivoro':
animal = 'pomba'
if tipo == 'vertebrado' and classe == 'mamifero' and alimentacao == 'onivoro':
animal = 'homem'
if tipo == 'vertebrado' and classe == 'mamifero' and alimentacao == 'herbivoro':
animal = 'vaca'
if tipo == 'invertebrado' and classe == 'inseto' and alimentacao == 'hematofago':
animal = 'pulga'
if tipo == 'invertebrado' and classe == 'inseto' and alimentacao == 'herbivoro':
animal = 'lagarta'
if tipo == 'invertebrado' and classe == 'anelideo' and alimentacao == 'hematofago':
animal = 'sanguessuga'
if tipo == 'invertebrado' and classe == 'anelideo' and alimentacao == 'onivoro':
animal = 'minhoca'
print('{}'.format(animal))