[Tutor] Recursive Tkinter buttons

Jacob S. keridee at jayco.net
Mon Feb 28 00:42:50 CET 2005

> Yay! Thanks for the tips Michael/Alan - works a treat, although I must
> admit, I'm not sure what Lambda does.
> Adam

Lambda is basically a function without a name that can be used inline.
Take for example, this code.

def funct(x):
    return sin(x)

is the same as

funct = lambda x: sin(x)

There seems to be a running debate over whether lambdas are worth the 
trouble. I believe it's a matter of preference.


More information about the Tutor mailing list