+ 1
Why my code does not work in SL but work in my IDE
https://code.sololearn.com/cM7q2S8H2Bl0/?ref=app I have made a code that turn a message written in Cesar cipher to the normal letters, i made it in my pc by thonny IDE and it worked fine but when i tried to post it in SL i found that it does not run in the playground and it says that there is an error So can you tell me what is that problem which cause the error, and tell me what do you think about my code and how can i improve it. And of course thanks for your help😉
3 Réponses
+ 3
As Thomas already mentioned, there are some problems with the spaces used for indentation. Its not in all lines of code, and its always starting from the left border up to the beginning of first letter. The spaces used there are so called “nonbreaking spaces” (ASCII 160). These are mainly used in wordprocessing programs. You can get this problem when your editor is not suitable for coding, or if you copy and paste code from some websites or from pdf files.
I have reworked your code, so it should run now properly:
https://code.sololearn.com/cdr73Lr7iNTk/?ref=app
+ 2
There is some thing wrong with the 'blanks' or 'whitespaces' from your IDE.
If you run my test, you will see a differend output for the blanks. The first one is copyed from the Intention of your code, the second is directly written in SL.
Maybe Lothar knows, how to solve this?
https://code.sololearn.com/cPq7ikI3Sy6u/?ref=app