## Write a list comprehension that finds all the Pythagorean triples for right triangles with sides shorter than 100

May 26, 2020

Write a list comprehension that finds all the Pythagorean triples for right triangles with sides shorter than 100. A Pythagorean triple is three integers a, b, and c, where a² + b² = c². In Elixir it takes a line of code with pattern-matching to produce this. Note the 3