calculate area in python code example
Example 1: python area calculator
lenght = float(input('input length here'))
height = float(input('input height here'))
total = lenght * height
print(total)
Example 2: python calculate scalene triangle
print("Input lengths of the triangle sides: ")
x = int(input("x: "))
y = int(input("y: "))
z = int(input("z: "))
if x == y == z:
print("Equilateral triangle")
elif x==y or y==z or z==x:
print("isosceles triangle")
else:
print("Scalene triangle")