0

jungle camping (code coach)

I'm stuck, 2 test cases work and can't see why the others do not work https://code.sololearn.com/cmx7JXgdSbjo/?ref=app

24th Mar 2020, 11:37 PM
madelon
4 Antworten
+ 2
Your code does not work if you enter three animal sounds. -> b is not defined (you define it only if len == 2) And you can get more than 3 sounds so I would use a loop.
24th Mar 2020, 11:51 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
thank you both for answering, gonna try again.
25th Mar 2020, 6:54 PM
madelon
+ 1
solved it 😁
25th Mar 2020, 7:03 PM
madelon
+ 1
madelon Congrats :)
25th Mar 2020, 7:08 PM
Denise Roßberg
Denise Roßberg - avatar