Python Forum
How to paste several lines of codes to the Python console
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to paste several lines of codes to the Python console
#6
I tried multiply line paste in Python 3.9 and it worked as expected. Error message seems to imply that there are multiple statements found in one statement. It wouldn't hurt to check syntax and maybe there is some error which makes Python consider multiple statements as one.

If you already paste code then you could do into file instead of interactive interpreter and put breakpoint() into needed places. This way it is possible to run file but also 'investigate directly'.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
RE: How to paste several lines of codes to the Python console - by perfringo - Dec-16-2020, 02:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with Spyder IDE: Clear console doesn't actually clear the console GalacticStarfish 2 5,648 Sep-03-2017, 09:01 PM
Last Post: dvs1

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020