Here are some example simple programs. Please feel free to contribute, but see notice at bottom, please.
These examples assume version 2.4 or above of Python. You should be able to run them simply by copying/pasting the code into a file and running Python. Or by inserting this line (#!/bin/env python) at the beginning of your file (Unix/Linux), making the file executable (chmod u+x filename.py) and running it (./filename.py).
1 line: Output
1 print 'hello world'
2 lines: Input, assignment, comments
3 lines: For loop, builtin enumerate function
4 lines: Fibonacci, tuple assignment
