Running Python Programs
In general
% python myprogram.py
Can also create executable scripts
Make file executable:
% chmod +x myprogram.py
The first line of the program tells the OS how to execute it:
#!/usr/bin/python
Then you can just type the script name to execute
% myprogram.py
or
% myprogram.py > myoutput.txt
5