class Shape:
    def __init__(self, circle, triangle):
        self.circle = circle     
        self.triangle = triangle 

    def circle_area(self):
        return 3.14 * self.circle * self.circle

    def triangle_area(self):
        return (self.triangle * self.triangle) / 2


shapes = Shape(5, 4)

print(shapes.circle_area())
print(shapes.triangle_area())

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: