> a = filter(lambda x, y=y: x<y, xList) > > However, you cannot have the function to modify such variables (that > is, the value they have outside lambda). Except for in-place modification of the object they refer to: >>> l = [] >>> (lambda l=l: l.append (1)) () >>> l [1] Alex.