Python Interactive Shell

General Information
The Python Interactive Shell is an interactive interpreter that can execute Python commands without saving it to a file.

Starting it
The Interactive Shell can be started with the bash-command. If you want to run programs stored in a file on this shell, type in  where FILENAME is the name of your file. This is useful for debugging.

Use it as a calculator
As explained above, the Interactive Shell can execute Python commands. Same goes for simple calculations. Here are a few examples:

Logical expressions
We can do the exact same thing with logical expressions, e.g.:

File operations
As we can open, write and read files by executing a script, we can also do that in this environment.

For further explanations about the usage of files, please look at Files.