πŸ“Š Python
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Local

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
293
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Akash Lawaniya
Publisher
πŸ“ˆ
86%
Success Rate