Read the following Python code carefully and point out the global variables?
y, z = 1, 2 def f(): global x x = y+z
What will be the output of the following Python code?
def san(x): print(x+1) x=-2 x=4 san(12)
a=10 globals()['a']=25 print(a)
def f1(): x=100 print(x) x=+1 f1()
def foo(i, x=[]): x.append(i) return x for i in range(3): print(foo(i))
def test(i,j): if(i==0): return j else: return test(i-1,i+j) print(test(4,7))
def f1(): x=15 print(x) x=12 f1()
def f(p, q, r): global s p = 10 q = 20 r = 30 s = 40 print(p,q,r,s) p,q,r,s = 1,2,3,4 f(5,10,15)