Question: [10 points] ( PYTHON ) Write a program that prompts user to enter three sides of a triangle. The program should determine if the three
- [10 points] (PYTHON) Write a program that prompts user to enter three sides of a triangle. The program should determine if the three sides can form a triangle. If the three sides can form a triangle, then determine the type of the triangle. There are three types of triangles:
- Equilateral triangle (all 3 sides are equal)
- Isosceles triangle (two sides are equal, the third side is of a different length)
- Scalene triangle (all 3 sides are of different lengths)
The program should have a function called triangle_type() that takes 3 parameters, the lengths of each side. The triangle_type() function should return Equilateral, Isosceles, or Scalene according to the descriptions above. Do not use global variables. Function parameters must be used.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
