0

Steps for output

a=(lambda x: x**3)((lambda x:x+2)(1)) print(a)

7th Apr 2019, 2:16 PM
Navneet
Navneet - avatar
1 Odpowiedź
+ 2
We start evaluating the inner lambda, working our way outward. (lambda x:x+2)(1) == 1+2 == 3. (lambda x:x**3)((lambda x:x+2)(1)) == (lambda x:x**3)(3) == 3**3 == 27.
7th Apr 2019, 2:36 PM
Diego
Diego - avatar