I'm doing python developing.
class Figure():
def __init__(self, a, b, c):
self.dots = a
self.height = b
self.width = c
def calcArea(self):
area = self.height * self.width
print(area)
def Tellarea(self):
x= calcArea(self)
print(self.figure+" area :", x)
In this case, the x part is said to be wrong. What should I do to write the function values directly from another function?
I'm a beginner coder. Sorry for the cute question.