1class Rectangle:
2 def __init__(self, width, length):
3 self.length = length
4 self.width = width
5
6
7 def calculate_perimeter(self):
8
9 return 2 * (self.width + self.length)
10
11Rectangle_1 = Rectangle(3, 4)
12
13print (Rectangle_1.calculate_perimeter())