A
Q. What will be the output of the following code snippet?
Code:
def func():
global value
value = "Local"
value = "Global"
func()
print(value)
global value
value = "Local"
value = "Global"
func()
print(value)
- Correct Answer - Option(A)
- Views: 7
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.