lambda without vars?

moonseeker at my-deja.com moonseeker at my-deja.com
Wed Mar 15 08:54:09 EST 2000


Hi!

Can't I use variables in a lambda definition?

i.e.:

xList = [5, 10, 20, 35, 55]
y = 50
a = filter (lambda x: x<y, xList)

Thanks,
Mike


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list