Answer:
-1 ans +2 are the pair of integers whose sum is 0.
Answer:
See Explanation
Explanation:
Required
Complete the given code
First, it should be noted that the original code (in the question) is complete, however it is poorly formatted.
The errors that may arise when the code is run is as a result of the poor format of the code.
I've corrected all errors and I fixed the indentations in the original code.
<em>See attachment for the complete code.</em>
The code will have to obey the Pythagorean theorem that says square of the hypotenuse side is equals to the sum of the squares of the other legs.
<h3>How to write a code that check if a triangle is a right angle by using Pythagoras theorem?</h3>
The code is written in python.
def right_triangle(x, y, z):
if x**2 + y**2 == z**2 or y**2 + z**2 == x**2 or z**2 + x**2 == y**2:
print("it is a right angle triangle")
else:
print("it is not a right angle triangle")
right_triangle(6, 10, 8)
<h3>Code explanation</h3>
- we defined as function named "right_triangle". x, y and z are argument which are the length of the triangle.
- Then we check if the sides obeys Pythagoras theorem.
- If it does we print a positive statement else we print a negative statement.
Learn more about python at: brainly.com/question/21437082
#SPJ4
Yes, there is a way to mark your favourite website on the internet by adding it to bookmark
Explanation:
No, I didn't find it difficult to create a bookmark.
It was easy you just have to click on the bookmark button