Please explain the output for the code below. According to me Output should be 1,1 but it is not.Also the assignment of x after the print statement.
x=0
y=0
def f():
x=1
y=1
class C:
print(x,y)
x = 2
f()
Output -> 0 1