0

For the Camel to snake challenge its only putting '_' on the last Upper case letter not all but 'i' in the for loops sees them

https://code.sololearn.com/cXR7Mc0aoTbB/?ref=app

24th Jul 2022, 8:06 PM
Jakub Quinn
Jakub Quinn - avatar
5 ответов
+ 1
I hope that helped, I corrected your Code and uploaded it for further help. edit: pls only look for the solution when you either finished or stuck, tho I think you get it on your own already. 😉 https://code.sololearn.com/cu80DlR0F24k/?ref=app
24th Jul 2022, 9:10 PM
Felix Alcor
Felix Alcor - avatar
+ 2
Trust me i didn't want a full answer just a puzzle piece i missed
24th Jul 2022, 9:14 PM
Jakub Quinn
Jakub Quinn - avatar
0
Your Problem's that you Always Change Camel Case. You Loop Looks if Camel Case have upper Case but when you find one you add it in Snake Case, but in the next Loop you do it the same with the new one. Camel Case = thisIsASentence First Upper: this_isASentence = Snake Case Next Upper: thisIs_aSentence = Snake Case.
24th Jul 2022, 8:58 PM
Felix Alcor
Felix Alcor - avatar
0
Thank youu i completely missed that
24th Jul 2022, 9:02 PM
Jakub Quinn
Jakub Quinn - avatar
0
I will thank you
24th Jul 2022, 9:13 PM
Jakub Quinn
Jakub Quinn - avatar