+ 2
Jungle Camping prob. test case 5 is giving error
https://www.sololearn.com/coach/45?ref=app https://code.sololearn.com/cx4NYL13TQU8/?ref=app
11 ответов
+ 3
Well, your approach is interesting to say the least, but, you overcomplicated it.
I will give you a hint: use the replace() method in python.
+ 2
Rajkamal Ingle
No. Just read the description again. There is no hint about the number of animals.
+ 2
Rajkamal Ingle
And here is a hint that animals can repeat:
"Output:
A string that includes each animal that you hear with a space after each one. (animals can repeat)"
+ 1
Fernando Pozzetti Mukesh I have added my code, have a look.
+ 1
You should make your code work for more than 4 sounds. You’ll have to rewrite the code totally cuz you cant make it work in this way.
+ 1
Fernando Pozzetti It worked, thnx!
0
Check that the outputs are correct. Caps lock and all.
Show us your code
0
Rajkamal Ingle
Your code does not work for more than 4 sounds.
0
Denise Roßberg The problem asked for output of Four sounds only.