lambda without vars?

moonseeker at my-deja.com moonseeker at my-deja.com
Wed Mar 15 14:54:09 CET 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