0
https://www.sololearn.com/coach/45?ref=app i think this is ok but cases faild. Why?
4 Respostas
+ 2
The Code Coach states that the input format will be "A string that represent the noises that you hear with a space between them." The sample input shows that multiple noises in the input are possible. You are only checking for one. You'll need to split the input by space, loop through all noises, and output the animal for each iteration.
+ 1
Atalay Osmanoğlu you need to put your code in the Code Playground and share a link. We cannot see your code in the Code Coach link you have provided.
+ 1
hear = input()
a = hear
x = 'Ssss'
y = 'Rawr'
z = 'Chirp'
t = 'Grr Grr'
if x == a:
print ("Snake")
elif y == a:
print ("Tiger")
elif z == a:
print ("Bird")
elif t == a:
print ("Lion Lion")