To calculate area of a triangle we use the formula area=(base*length)/2
#Python program to calculate area of a triangle b= float(input("Enter base: ")) h= float(input("Enter height: ")) area= (b*h)/2 print("Area of the triangle = ", area)
Output