Program To Check whether a Triangle is Equilateral , Isosceles or Scalene | Function to check if the triangle is equilateral or isosceles or scalene ; _Check for equilateral triangle ; Check for isosceles triangle ; Otherwise scalene triangle ; Given sides of triangle ; Function Call
def checkTriangle ( x , y , z ) : NEW_LINE INDENT if x == y == z : NEW_LINE INDENT print ( " Equilateral ▁ Triangle " ) NEW_LINE DEDENT elif x == y or y == z or z == x : NEW_LINE INDENT print ( " Isosceles ▁ Triangle " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " Scalene ▁ Triangle " ) NEW_LINE DEDENT DEDENT x = 8 NEW_LINE y = 7 NEW_LINE z = 9 NEW_LINE checkTriangle ( x , y , z ) NEW_LINE