## Easily create a Python REPL in Python  
Originally published: 2016-10-31 21:53:29  
Last updated: 2016-10-31 21:53:30  
Author: Vasudev Ram  
  

This recipe shows how to easily create a Python REPL (Read-Eval-Print Loop) in Python itself. This can allow the user to interact with a running Python program,  including typing in Python statements at the REPL prompt, defining functions, using and changing variables that were set before the interaction started, and those  variables modified during the interaction, will persist in the memory of the program, for any use, even after the interaction is over, as long as the program continues to run.

