1# basic class
2
3def go():
4    class C:
5        def f():
6            print(1)
7
8        def g(self):
9            print(2)
10
11        def set(self, value):
12            self.value = value
13
14        def print(self):
15            print(self.value)
16
17    C.f()
18    C()
19    C().g()
20
21    o = C()
22    o.set(3)
23    o.print()
24
25    C.set(o, 4)
26    C.print(o)
27
28go()
29