What is the output of the following code?
x = 10
def func():
global x
x = 5
print(x)
func()
print(x)
(A)
10
(B)
5
(C)
15
(D)
Error
Answer: (B)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Uncategorized
Recommended Articles