# Input the base and height from the user base = float(input("Enter the length of the base of the
triangle: ")) height = float(input("Enter the height of the triangle: ")) # Calculate the area of the
triangle area = 0.5 * base * height # Display the result print(f"The area of the triangle is: {area}")