PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#x = "Rawr Chirp Ssss".split(" ")
x=input().split(" ")
animals=[]
for i in x:
if "Grr" == i:
animals.append("Lion")
elif "Rawr" == i:
animals.append("Tiger")
elif "Ssss" == i:
animals.append("Snake")
elif "Chirp" == i:
animals.append("Bird")
else:
continue
animals_j=" ".join(animals)
print(animals_j)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run