Python shell
The interactive mode of the interpreter, where you type one statement at the >>> prompt and see the result straight away.
In more detail
The shell is for quick questions and experiments: type an expression and it shows the value, without needing print. It is sometimes called a REPL, for read, evaluate, print, loop. Nothing typed there is saved, so whole programs belong in a file.
Example
>>> 2 + 3
5Related terms
- Python prompt — The three greater-than signs, >>>, that the Python shell shows when it is waiting for you to type a statement.
- IDLE — The simple editor and Python shell that come with Python itself.
- interpreter — A program that reads source code and carries it out at run time, instead of translating it into machine code in advance.
Taught in
- Editors, IDEs And Shells — Hands-on Python: Complete Video Course & Book
- Where Python Lives: PATH And Versions — Hands-on Python: Complete Video Course & Book
- First Run, And Fixing A Broken Install — Hands-on Python: Complete Video Course & Book
- Idle And The Python Shell — Hands-on Python: Complete Video Course & Book
- The Idle Editor And Running Programs — Hands-on Python: Complete Video Course & Book