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
5

Related terms

Taught in

References