0

Camel to Snake Code Coach indentation error

This Python code is for the Camel to Snake code coach exercise..it works when I run it on PC but causes bugs in sololearn asking to resolve indentation error.. can you figure out what's wrong? https://code.sololearn.com/cvx8Pbz2GjLj/?ref=app

8th May 2023, 10:51 PM
Waseem Haidar
Waseem Haidar - avatar
5 Answers
+ 3
There's something weird about your space characters, I think you're somehow getting nbsp instead of regular spaces. Might be a regional keyboard issue? Either way, replacing all the white space on my end fixed it
9th May 2023, 12:12 AM
Orin Cook
Orin Cook - avatar
+ 2
avoid copy pasting code from browsers or webpages as they might use hidden characters that mess up your code. This one have U+00A0 in several places. https://www.semicolonandsons.com/code_diary/encoding/white-space-is-not-necessarily-white-space one should also be wary of malicious uses of whitespace. Google "whitespace padding", "zero-width spaces phishing", etc
10th May 2023, 3:41 PM
Bob_Li
Bob_Li - avatar
9th May 2023, 7:26 AM
Ugulberto SĂĄnchez
Ugulberto SĂĄnchez - avatar
+ 1
Thank you guys, Ugulberto SĂĄnchez was it fixed just by replacing the white spaces? Now it works on my sololearn app too!
9th May 2023, 8:30 AM
Waseem Haidar
Waseem Haidar - avatar
+ 1
Your welcome! Happy learning!
9th May 2023, 8:34 AM
Ugulberto SĂĄnchez
Ugulberto SĂĄnchez - avatar