isosceles triangle code in python

Solutions on MaxInterview for isosceles triangle code in python by the best coders in the world

showing results for - "isosceles triangle code in python"
Mattia
04 Apr 2020
1print("Input lengths of the triangle sides: ")
2x = int(input("x: "))
3y = int(input("y: "))
4z = int(input("z: "))
5
6if x == y == z:
7	print("Equilateral triangle")
8elif x==y or y==z or z==x:
9	print("isosceles triangle")
10else:
11	print("Scalene triangle")
Linda
16 Mar 2020
1print("Input lengths of the triangle sides: ")
2x = int(input("x: "))
3y = int(input("y: "))
4z = int(input("z: "))
5
6if x == y == z:
7	print("Equilateral triangle")
8elif x==y or y==z or z==x:
9	print("isosceles triangle")
10else:
11	print("Scalene triangle")
12
13