I've always found this very annoying that whenever IDLE code is posted online it contains the ">>>" and "..." characters and is essentially impossible to copy/paste easily without prior clean up.
Is there easy way to get around that from either the code poster and, more importantly for me, the code user's perspective?
The question marked as a possible duplicate asks how to change the prompt in the console. What I'm asking rather is, when I'm copy/pasting code into my console such as the code below:
>>> import os
>>> os.getcwd()
How can I do so without running into the problem of my console saying
File "<input>", line 1
>>> import os
^
SyntaxError: invalid syntax