What is the output of the following code ?
def foo(a): return a * a * a x = foo(2) print(x)
As 2 is passed to the function, the expression a * a * a becomes 2 * 2 * 2 i.e 8 and this value is returned from function
Comment here: