Write a Python function that will accept the base and height of a triangle and compute the area.


Topic: Write a Python function that will accept the base and height of a triangle and compute the area.

Solution

def triangle_area(base, height):
    area = base*height/2
    return area



List all Python Programs