What is the output of the following code ?
foo = lambda x: x ** 3 print(foo(3))
foo = lambda x: x ** 3 is same as
foo = lambda x: x ** 3
def foo(x): return x ** 3
So function call print(foo(3)), prints 27
print(foo(3))
Comment here: