Equilateral Area
Create a Python program that defines the function
equilateral_area(edge_length: float) -> float
that
computes the area of an equilateral triangle. The
parameter edge_length specifies the length of the
triangle's edges. The function should return the area of the
triangle. The area of an equilateral triangle and be computed with
the equation:
a=√34×l2
Where a is the area of the triangle and l is the length of an edge of the triangle.
Test Cases
Create your own! Use this template:
import test def equilateral_area(edge_length: float) -> float: # Put your code here def main() -> None: test.equal(equilateral_area(?), ?) # Put more test cases here return None main()