Create a Perimeter() method to calculate the perimeter of
the rectangle and Area() method to calculate the area of
the rectangle.
Answers
Answered by
0
Answer:
well, I hope you created the respective class for these methods. Put these methods inside that class with indentation.
def perimeter(self):
peri=2(self.length+self.breadth)
print(peri)
return peri
def area(self):
area=(self.length*self.breadth)
print(area)
return area
Step-by-step explanation:
this is in python.
Similar questions