Q. What will be the output of the following code snippet?
Code:
def func(): global value value = "Local" value = "Global" func() print(value)
β
Correct Answer: (A)
Local
def func(): global value value = "Local" value = "Global" func() print(value)
You must be Logged in to update hint/solution