from math import sqrt
mx = 10
triples = [(a, b, sqrt(a ** 2 + b ** 2)) for a in range(0, mx) for b in
    range(a, mx)]
triples = [(a, b, int(c)) for a, b, c in triples if c.is_integer()]
print(triples)

37df3ac9db75628b1b02745fe3ac88434ba02eac
<mask token>

<mask token>
print(triples)

<mask token>
mx = 10
triples = [(a, b, sqrt(a ** 2 + b ** 2)) for a in range(0, mx) for b in
    range(a, mx)]
triples = [(a, b, int(c)) for a, b, c in triples if c.is_integer()]
print(triples)

from math import sqrt
mx = 10
triples = [(a, b, sqrt(a ** 2 + b ** 2)) for a in range(0, mx) for b in
    range(a, mx)]
triples = [(a, b, int(c)) for a, b, c in triples if c.is_integer()]
print(triples)
