How to start REPL at the end of python script?

Viewed 548

How can I start REPL at the end of python script for debugging? In Node I can do something like this:

code;
code;
code;

require('repl').start(global);

Is there any python alternative?

2 Answers
Related