A

Admin • 825.56K Points
Coach

Q. What will be the output of the following code snippet?

Code:
def func():
global value
value = "Local"

value = "Global"
func()
print(value)
  • (A) Local
  • (B) Global
  • (C) None
  • (D) Cannot be predicted
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category Python
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.