Write a program triangle_identifier.py
that identifies the category of triangle based on the lengths of its sides. The main program asks the user to enter the lengths of each side of the triangle. It then calls a function identify()
which takes the three sides as parameters and returns a string--equilateral
, isosceles
, or scalene
--as appropriate.