filmov
tv
Area and perimeter of parallelogram | Python file | I.E. Imagine Eyes
Показать описание
code =
source code :
print("Wellcome to PARALLELOGRAM.py")
def parallelogram():
side = float(input("Side = "))
base = float(input("Base = "))
height = float(input("Height = "))
area = base*height
perimeter = 2*(side + base)
print("Area = ", area, "sq units")
print("Perimeter = ", perimeter, "units")
while True:
parallelogram()
if input() == "exit":
break
All shapes calculator :
source code :
print("Wellcome to PARALLELOGRAM.py")
def parallelogram():
side = float(input("Side = "))
base = float(input("Base = "))
height = float(input("Height = "))
area = base*height
perimeter = 2*(side + base)
print("Area = ", area, "sq units")
print("Perimeter = ", perimeter, "units")
while True:
parallelogram()
if input() == "exit":
break
All shapes calculator :