The Python language can be run interactively in “calculator mode” using the command:
python
If you write a Python script named
,
you can execute it using the command
filename.py
python filename.py
Under Unix, you can also make a script self-executing by placing this line at the top:
#!/usr/local/bin/python