user
Instruction: Write a few lines of code for a function to calculate the area of a triangle.
Output:
assistant
def triangleArea(base, height): 
  area = (base * height) / 2 
  return area

# Usage 
triangleArea(5, 2) # 5 is the base, 2 is the height 
# Output: 5.0