+ 2
Jungle camping
Is something wrong ? sound= input() Lion= (sound.count("Grr"))*"Lion " Tiger= (sound.count("Rawr"))*"Tiger " Snake= (sound.count("Ssss"))*"Snake " Bird= (sound.count("Chirp"))*"Bird " print (Lion + Tiger + Snake + Bird ) Failed 1 test case
2 Antworten
+ 1
Assume input Snake Lion
expect output is Ssss Grr
but your code's output is Grr Ssss.
You have to order your output depends on the input.