In this article we will show you, How to write Python Program to find Area Of a Triangle using base and height with practical example.

## Python Program to find Area of a Triangle using base and height example 1

This Python program allows the user to enter the base and height of a triangle. Using those two values, it will find the area of a triangle.

**TIP :** The mathematical formula to find Area of a triangle using base and height : Area = (base * height) / 2

# Python Program to find Area of a Triangle using base and height base = float(input('Please Enter the Base of a Triangle: ')) height = float(input('Please Enter the Height of a Triangle: ')) # calculate the area area = (base * height) / 2 print("The Area of a Triangle using", base, "and", height, " = ", area)

**OUTPUT**

## Python Program to calculate Area of a Triangle using base and height example 2

This program is same as above. However, we separated the logic using functions concept.

# Python Program to find Area of a Triangle using base and height def area_of_triangle(base, height): return (base * height) / 2 base = float(input('Please Enter the Base of a Triangle: ')) height = float(input('Please Enter the Height of a Triangle: ')) # calculate the area area = area_of_triangle(base, height) print("The Area of a Triangle using", base, "and", height, " = ", area)

**OUTPUT**