2 lines
64 B
Python
2 lines
64 B
Python
|
|
[(x, y, z) for (x, y, z) in triplets(n) if x**2 + y**2 == z**2]
|