What is the output of the following code ?
foo = [lambda x: x ** 2, lambda x: x ** 3, lambda x: x ** 4] for f in foo: print(f(2))
Each lambda expression in foo list becomes an in line function and assigned to "f"in for loop
Comment here: