On 24/08/15 07:38, rakesh sharma wrote:
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 +
On 24Aug2015 12:08, rakesh sharma wrote:
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) + 1
when I am able to do that in two lines
>>> h = lambda
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)