1 class C: 2 x = 3 3 4 def f(): 5 x = g.x 6 y = g 7 return y.x 8 9 g = C 10 result = f() 11 print result