Monday, July 03, 2006

some very simple python stuff

>>> def asquare(y):
... return y*y
...
>>> alist = [1, 2, 3]
>>> map(asquare, alist)
[1, 4, 9]