circle = Circle(5)
print("Circle Area:", circle.area_calculation())
Вывод:
Circle Area: 78.53981633974483
triangle = Triangle(3, 4, 5)
print("Triangle Area:", triangle.area_calculation())
Вывод:
Triangle Area: 6.0
triangle = Triangle(3, 6, 5)
print("Is Triangle Rectangular:")
triangle.is_triangle_rectangular()
Вывод:
Is Triangle Rectangular:
Triangle is not rectangular
Выполняются успешно.