Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 example

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

Students also viewed these Databases questions

Question

How to reverse a Armstrong number by using double linked list ?

Answered: 1 week ago