Python program to calculate the area of a trapezoid.

 

height = float(input("Height of trapezoid: "))

base_1 = float(input('Base one value: '))

base_2 = float(input('Base two value: '))

area = ((base_1 + base_2) / 2) * height

print("Area is:", area)

Comments

Some popular posts

Python Program that computes the net amount of a bank account based a transaction log from console input.