0

It can't run why? Is there any one to help.me?

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

21st Sep 2023, 6:22 PM
Daniel Mulugeta
Daniel Mulugeta - avatar
5 ответов
+ 5
Daniel Mulugeta notice the error message says "Syntax error: invalid non-printable character...". Often when you paste into Sololearn from some other text source, that happens. Look at the line number in the error message. Go to that line and delete and retype the blank spaces. Run it again, and you'll see the message now shows a different line. It comes down to this: delete and retype ALL the blank spaces.
21st Sep 2023, 6:38 PM
Brian
Brian - avatar
+ 2
Ok i was write the code on Python compiler i got u so there is a problem when copy from other sources ###🙄
21st Sep 2023, 6:41 PM
Daniel Mulugeta
Daniel Mulugeta - avatar
+ 2
Rain the problem often happens to me when I compose in a scratchpad on my phone and copy/paste from there.
22nd Sep 2023, 6:30 PM
Brian
Brian - avatar
+ 1
Daniel Mulugeta , Unicode \u00A0 is a non-breaking space. That's usually used in desktop publishing and stuff. Not sure how it could have gotten into some code unless you copied the code from an html page and somebody used it to help control the layout.
22nd Sep 2023, 5:39 PM
Rain
Rain - avatar
+ 1
It because of the IndentationError , a non printable space or character in you code
23rd Sep 2023, 7:36 AM
Abin B N
Abin B N - avatar