In Python, write a program to calculate the area of a triangle when the base and height are given.
Base: 10, Height: 5
def triangle_area(base, height):
 return (base * height) / 2

triangle_area(10, 5)  # 25.0