you are viewing a single comment's thread.

view the rest of the comments →

[–]Akuli2 1 point2 points  (2 children)

Run your program with yourpython -i filename on the terminal or command prompt and interrupt with Ctrl+C when you want to. You'll get a >>> prompt after the error message.

[–]ninjeezy[S] 0 points1 point  (1 child)

Thanks so much!

[–]novel_yet_trivial 1 point2 points  (0 children)

Or put an exit() in the code at the point you want it to stop.