Python program to find area of triangle
In this python program, we will find the area of a triangle.
Example 1:-
If Triangle is a Right Angle Triangle
#python program to find area of triangle
perpendicular=5
base=7
area= (perpendicular * base) / 2
print(‘area of right angle triangle = ‘,area)
Output
area of right angle triangle = 17.5
Example 2:-
If Triangle is not a right angle and the sizes of the sides are different then
#python program to find area of triangle
a=10
b=15
c=12
s=(a + b + c) / 2
area = (s * (s-a) * (s-b) * (s-c) )** 0.5
print(‘area of triangle = ‘,area)
Output
area of triangle = 59.81168364124187
Python Program to add two numbers
Python program to find Area of Square
Python program to find Area of Triangle
Python program to swap two variables
Python program to convert Celsius to Fahrenheit
Python program to generate Random Number
Python program to convert Miles to Kolometers
Python program to find Largest of 2 numbers
Python program to check if number is Odd or Even
Python program to check if number is Positive Negative or Zero
Python program to check Leap Year
Types of Loop in Python
Python program to check Prime Number
Python program to Calculate Sum of N Natural Numbers
Python program to find sum of All Even Number between 1 to 10
Python program to find sum of All Odd Number between 1 to 10
Python program to check Armstrong Number