+ 2

If problem

Guys. I need help. No matter what I writr in input "calling" it always runs "sustava2". I cant figure it out. I bet it will be something easy but I dont see it. Thx for help https://code.sololearn.com/crPG5hKpVyYY/?ref=app

30th Oct 2017, 5:08 PM
Boris
Boris - avatar
3 Answers
+ 3
You need to specify if calling == "sustava" or calling == "sus" or calling == "s" or calling == "sustava2": "sus" by itself is true.
30th Oct 2017, 5:12 PM
John Wells
John Wells - avatar
+ 2
ooooh, thanks. Im gonna try it right now
30th Oct 2017, 5:12 PM
Boris
Boris - avatar
+ 1
Personally, I would take the length of calling, substr out that many characters of "sustava2", and do a single compare.
30th Oct 2017, 5:19 PM
John Wells
John Wells - avatar