program:x=3def func(): global x print(x)func()Output:3
x=3
def func():
global x
print(x)
func()
Output:
3