x = 50
def func():
global x
print('x is', x)
x = 2
print('Changed global x to', x)
func()
print('Value of x is', x)
Answers
Answered by
0
Answer:
I don't understand the question
Answered by
0
Answer: x is 50
Changed global x to 2
Value of x is 2
Explanation:
x = 50
def func():
global x
print('x is', x)
x = 2
print('Changed global x to', x)
func()
print('Value of x is', x)
Similar questions