Question: [10 points] ( PYTHON ) Write a program that prompts user to enter three sides of a triangle. The program should determine if the three

  1. [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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!