Currently, I am working on python interactive shell version 6. When i start python shell, i use to code some line. but i don’t know how to store what i code. So, is there any command or or keyword to save my session on python shell as like .py
Currently, I am working on python interactive shell version 6. When i start python
Share
Maybe you mean ipython? For this shell, all your input is stored in the
Indictionary. Here’s an example session log how to write input lines 2-3 into the scriptmyscript.py: