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