class name1():
def ram1():
a = ''
b = ''
a = 1
b = 2
def ram2():
a = ''
b = ''
a = 3
b = 4
a = ''
b = ''
class name1():
def ram1():
a = 1
b = 2
def ram2():
a = 3
b = 4
class Foo:
def __init__(self):
self.a = 1
self.b = 2
def f(self):
return self.a + self.b
class Bar(Foo):
def __init__(self):
super().__init__()
x = Bar()
print(x.a)
x.a = 50
print(x.f())