Python Program to find Isosceles Triangle Area

Write a Python Program to find Isosceles Triangle Area. This python example allows entering lengths of an isosceles triangle sides and finds the area using a math formula.

# Python Program to find Isosceles Triangle Area
import math

a = float(input("Enter Isosceles Triangle SideLength  : "))

b = float(input("Enter the Other Side of Isosceles Triangle : "))

isosceleArea = (b * math.sqrt((4 * a * a) - (b * b)))/4;

print("The Area of the Isosceles Triangle = %.3f" %isosceleArea) 

Python Area of a n Isosceles Triangle output

Enter Isosceles Triangle SideLength  : 10
Enter the Other Side of Isosceles Triangle : 8
The Area of the Isosceles Triangle = 36.661

In this Python Program, we created an IsoscelesTriangleArea function to find the area of an Isosceles Triangle.

# Python Program to find Isosceles Triangle Area
import math

def IsoscelesTriangleArea(a, b):
    return (b * math.sqrt((4 * a * a) - (b * b)))/4

a = float(input("Enter Isosceles Triangle Side Length  : "))

b = float(input("Enter the Other Side of Isosceles Triangle : "))

isosceleArea = IsoscelesTriangleArea(a, b)

print("The Area of the Isosceles Triangle = %.3f" %isosceleArea) 
Python Program to find Isosceles Triangle Area 2