M
Explanation by: Mr. Dubey
in the code shown above, when we call the function f, a new namespace is created. the assignment x=4 is performed in the local namespace and does not affect the global namespace. hence the output is 1.
You must be Logged in to update hint/solution
Discusssion
Login to discuss.