-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1049.py
More file actions
38 lines (35 loc) · 713 Bytes
/
1049.py
File metadata and controls
38 lines (35 loc) · 713 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
26
27
28
29
30
31
32
33
34
35
36
37
38
STRING_1 = None
STRING_2 = None
STRING_3 = None
def read_string():
try:
# read for Python 2.x
return raw_input()
except NameError:
# read for Python 3.x
return input()
STRING_1 = read_string()
STRING_2 = read_string()
STRING_3 = read_string()
if STRING_1 == "vertebrado":
if STRING_2 == "ave":
if STRING_3 == "carnivoro":
print("aguia")
else:
print("pomba")
else:
if STRING_3 == "onivoro":
print("homem")
else:
print("vaca")
else:
if STRING_2 == "inseto":
if STRING_3 == "hematofago":
print("pulga")
else:
print("lagarta")
else:
if STRING_3 == "hematofago":
print("sanguessuga")
else:
print("minhoca")