Write a function to return the area of a equilateral triangle


Topic: Write a function to return the area of a equilateral triangle

Solution

def cal_eq_triangle_area(a:float)->float:
    if a:
        return (3**(1/2))*(a**2)/4
    else:
        return None



List all Python Programs