def triangle_area(base, height):
    """Returns the area of a triangle

    Parameters
    ----------
    base : float
        length of the triangle's base
    height : function
        height of the triangle

    Returns
    -------
    area : float
        area of the triangle
    """

    area = 0.5*base*height

    return area