What is the output of the following code ?
def foo(x): print(x+2) x = -5 x = 10 foo(12)
Here print(x+2), the value of x is 12 which is passed by foo(12).So it prints 12 + 2 = 14
print(x+2)
foo(12)
Comment here: