RosettaCodeData/Task/List-comprehensions/Python/list-comprehensions-7.py
2018-06-22 20:57:24 +00:00

1 line
64 B
Python

((x, y, z) for (x, y, z) in triplets(n) if x**2 + y**2 == z**2)