Answered step by step
Verified Expert Solution
Question
1 Approved Answer
[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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started