This is an old revision of the document!
Python is a dynamic object-oriented programming language with extensive standard libraries. These notes summarize the Python 3.0 tutorial.
define func(n,str="default"):
define func(formal1, formal2, *arguments **keywords)
vec = [2, 4, 6] [[x, x**2] for x in vec if x > 2] [[4, 16], [6, 36]] [x+y for x in vec for y in vec2 if x > 2]
while a<10: pass
for x in list: pass for x in range(1,5): pass
if a›10: pass elif a›5: pass else:
import fib from fib import fib1, fib2
open('/tmp/workfile', 'w')