0
Différence between my computer and sololearn
Hello everyone ! I have done the jungle camping code coach and pass it on sololearn. When the input is "Grr Grr" the output is the right "Lion Lion". My problem it is when I use this code on my computer with visual studio, it is like the last animal noise is not considerate by the IF statement. I have only "Lion" output. I have done several test on my computer and if I add a space at the end "Grr Grr " I have 2 Lion output but the IF statement is considerate 3 times and that is not how the sololearn input works. Maybe some of you have advice or clue to find this difference between sololearn and pc code. Any help will be thankful. https://code.sololearn.com/cTMNz7MHJkZ9/?ref=app
1 Answer
0
Ok, I get it, when I write the input I push enter to validate and this enter is also in the string.
That's why the last Grr is not considerate because it's Grr + enter.
Thank you for the one who took time to read it.