def f(x,b):
global a
print(x,a-b)
a = 3
def g(a,b):
f(b,a)
print(a,b)
a = 1
b = 2
g(2,a)
print(a,b)
Hey guys so I am fairly new to Python and I have an exam soon. Our teacher requires us to trace code and he said that if we could trace this successfully we would be able to trace anything on the exam as this should be the highest level of difficulty. Can someone please tell me what this function will print and explain how you got there ok? Thank you.