Write a function to return the area of a right angle triangle


Topic: Write a function to return the area of a right angle triangle

Solution

def cal_rt_triangle_area(base:float,height:float)->float:
    if base and height:
        return (base*height)/2
    else:
        return None



List all Python Programs