+ 1

Gotham city soln switch and case problem

So I tried solving the problem with switch and case and I can't pass test 5 please help https://code.sololearn.com/ck0wpgwxKPD1/?ref=app

7th Jan 2020, 2:22 PM
Romil Zaveri
Romil Zaveri - avatar
5 ответов
+ 4
I guess "less than 5" includes 0. So I would change the range: 0...4
7th Jan 2020, 2:37 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
Thanks buddy. It did work. I never thought he would use the code if there's 0 enemies XD
7th Jan 2020, 2:40 PM
Romil Zaveri
Romil Zaveri - avatar
+ 2
Your welcome :)
7th Jan 2020, 2:44 PM
Denise Roßberg
Denise Roßberg - avatar
3rd Jul 2021, 5:50 PM
Chandan Ghosh
Chandan Ghosh - avatar
0
Vp
8th Jan 2020, 6:11 PM
jackson mtatiro