There are some issues where text is not being rendered correctly in this problem:
get_area: Returns area (( \text{width} \times \text{height} )).
get_perimeter: Returns perimeter ( 2(\text{width} + \text{height}) ).
get_diagonal: Returns diagonal ( \sqrt{\text{width}^2 + \text{height}^2} ).
I assume this is supposed to be something like:
get_area: Returns area (width * height).
get_perimeter: Returns perimeter ( 2 * (width + height) ).
get_diagonal: Returns diagonal ( sqrt(width**2 + height**2)).
It’s also ambiguous as whether it wants you to specifically use math.sqrt() or if something like ((width**2 + height**2) ** 0.5) would also be fine…
Screenshot:
