Python Program to find area of Triangle

In this post  “Python Program to find the area of Triangle, you’ll learn how to find the area of Triangle in Python

Python Program to find area of Triangle

To properly understand this example to find the area of triangle in Python, you should have the knowledge of following Python programming topics:

1.Input, Output, and Import
2.Variables and Data Types
3.Operators

Area of a triangle is equal to half of the product of its base and height.

The height of a triangle is the perpendicular distance from a vertex to the base of the triangle.

(Note: 12 is the height, not the length of the left-hand side)

Height = h = 12

Base = b = 20

Area = ½ bh = ½ × 20 × 12 = 120

here if a, b, and c are three sides of the triangle so this can be solved by the mathematical formula

Python Program to find the area of Triangle

Output

In this program, the area of the triangle is calculated when three sides are given using Heron’s formula.

Related Program

1.Python Program to Solve Quadratic Equation
2.Python Program to Generate a Random Number
3.Python Program to Generate a Random alphanumeric String
4.Python Program to Swap Two Variables

Ask your questions and clarify your/others doubts by commenting. Python Documentation

Python Program to find area of Triangle

Shubham Tripathi

Java Developer (Full Stack) , Passionate about creating impact on scale | striving for a continuous improvement | learning entire gamut of Computer technologies | Raising my technical skills & trying to become a better person everyday |

    See all posts by admin