#!/usr/bin/python def double(x): return x*2 a = [1, 2, 3] print map(double, a) print map((lambda x: x*2), a) print map((lambda x, y: x+y), [1, 2, 3], [4, 5, 6])