Answered step by step
Verified Expert Solution
Question
1 Approved Answer
plz use python Write a program that asks the user to enter 3 integers corresponding to the lengths of the sides of a triangle. The
plz use python
Write a program that asks the user to enter 3 integers corresponding to the lengths of the sides of a triangle. The program should first check if the triangle exists, and if that is the case, it should display the type of triangle following the rules: - The triangle does not exist if: - side_1 is greater or equal to the sum of side_2 and side_3, OR side_2 is greater or equal to the sum of side_1 and side_3, OR side_3 is greater or equal to the sum of side_1 and side_2. - In the case where side_1 equals side_2 AND side_1 equals side_3, the triangle is equilateral. - Otherwise, if side_1 equals side_2 OR side_1 equals side_3 OR side_2 equals side_3, the triangle is isosceles. - In all other cases, the triangle is obtuse. Notes: - You do not need to use a nested if structure for this question. You can solve it with a well though if ... elif ... structure. - The output must be in the format shown in the examples, including the format of the prompt, and all spaces and punctuation. For exampleStep 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