Question: use python only Write a program that asks the user to enter 3 numbers that represent the lengths of the sides of a triangle. The

 use python only Write a program that asks the user to

use python only

Write a program that asks the user to enter 3 numbers that represent the lengths of the sides of a triangle. The program should determine if the triangle formed by these 3 sides is a right triangle. Use the Pythagoras theorem (c=(a2+b2) with c being the longest side, known as the hypotenuse, and a and b the two other sides). If the side lengths can form a triangle, then display the message "This is a right triangle.", otherwise display "This is not a right triangle.". Notes - Assume that all input numbers will be integer values. - The output must be in the format shown in the examples below, including the format of the prompt, and all spaces and punctuation. - The user can enter the length of the sides in any order, so your program should check for every possible combination. - You do not need to import the math module as it has already been done for you. For example

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!