I want to access variable inside a method of parent class my code looks like this
class func1:
def show(self):
self.data = 123
self.next = 100
def new(self):
self.num = self.data + self.next
print(self.num)
class func2(func1):
def new_num(self):
self.new = self.num * 3
print(super.num)
but this gives attribute error
AttributeError: 'func2' object has no attribute 'num'