Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
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
5 Antworten
+ 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
+ 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
+ 1
Thank you guys, Ugulberto Sánchez was it fixed just by replacing the white spaces? Now it works on my sololearn app too!
+ 1
Your welcome! Happy learning!