Pythagorean triplets

Write a function @is_pythagorean(a, b, c)@ that receives as argument three integers greater than zero and returns True when the square of one of these arguments is the sum of the squares of the other two. Otherwise the function returns False.

Sample session

Problem information

Author: ProAl

Generation: 2026-01-25T17:13:18.127Z

© Jutge.org, 2006–2026.
https://jutge.org