Next / Previous / Contents / TCC Help System / NM Tech homepage

2. Starting Python

The Python language can be run interactively in “calculator mode” using the command:

python

If you write a Python script named filename.py, you can execute it using the command

python filename.py

Under Unix, you can also make a script self-executing by placing this line at the top:

#!/usr/local/bin/python