class Rectangle:
def __init__(self, width, height):
self.width = width
self.height = height
def area(self):
print(self.width * self.height)
def perimeter(self):
print(2 * (self.width + self.height))
r = Rectangle(5, 5)
r.area()
r.perimeter()
To embed this project on your website, copy the following code and paste it into your website's HTML: