Question 1
Implement the function according to the docstring.
Given three side lengths in the increasing order of length as a, b, and c,
where a <= b <= c, check if the given sides are the sides of a right triangle
whose perpendicular sides are of even length.
Hint: in a right triangle the square of hypotenuse is the sum of square of the other two sides.
Arguments:
a: int- the first side lengthb: int- the second side lengthc: int- the hypotenuse length
Return:
bool-Trueif the sides form a right triangle and the perpendicular sides are even, elseFalse
Your task
Implement this function:
def is_right_triangle_with_even_sides(a: int, b: int, c: int) -> bool:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: a, b, c.
Example
Input
6
8
10
Output
True