[Tutor] Using lambda

rakesh sharma rakeshsharma14 at hotmail.com
Mon Aug 24 08:38:06 CEST 2015

I am beginner in pythonI see the use of lambda has been for really simple ones as in the numerous examples over the net.Why cant we use lambda in another one like g = lambda x: (lambda y: y + 1) + 1when I am able to do that in two lines
h = lambda x: x + 1>>> h(12)13y = lambda x: h(x) + 1>>> y(1)3


More information about the Tutor mailing list