The Basics of Python Interactivec#

Interactive Mode#

Python 2

python

Python 3

python3

Debugging a Script#

Instead of a script ending an interactive session is opened

python -i hello.py

Source: Python Programming Book