Here’s an example of an list comprehension in Haskell from Wikipedia:
a = [(x,y) | x <- [1..5], y <- [3..5]]
-- [(1,3),(1,4),(1,5),(2,3),(2,4) ...
In this example, a list of pair of integers is constructed from 2 lists of integers.
Here is what that example would be in Python: