x = 1 def f(): x = 2 f() print(x) #1 class C: y = 1 def g(): y = 2 C.g() print(C.y) #1