Whatever editor you are using is not showing tabs. You should always use spaces, that way
when you use a bad editor it will show the white space.
When copying code, you need to cut and paste, not retype.
That way you know what you're getting.
I suggest you go back to the code (under 'new code' here: https://python-forum.io/Thread-EOL-While...ral?page=4
select the code by double clicking in the code window (on any line of code)
Type ctrl-c to copy the code, and ctrl-V into a new PyCharm window.
Save the code.
with curson in PyCharm window, from meny, click run-->run-->your program name
It should run without error (Of course you must be connected to internet)
If copied and pasted correctly, this code works.
when you use a bad editor it will show the white space.
When copying code, you need to cut and paste, not retype.
That way you know what you're getting.
I suggest you go back to the code (under 'new code' here: https://python-forum.io/Thread-EOL-While...ral?page=4
select the code by double clicking in the code window (on any line of code)
Type ctrl-c to copy the code, and ctrl-V into a new PyCharm window.
Save the code.
with curson in PyCharm window, from meny, click run-->run-->your program name
It should run without error (Of course you must be connected to internet)
If copied and pasted correctly, this code works.