input: Write a function to calculate the area of a triangle.
  assert triangle_area(10, 5) == 25.0
  assert triangle_area(8, 6) == 24.0
  assert triangle_area(7, 3) == 10.5
output: def triangle_area(base, height):
      return 0.5 * base * height