Python list comprehensions are rarely readable when nested. [y for x in [[1, 2], [3, 4]] if x for y in x if y]
miniblog.
Related Posts
Python learners beware: One minute you're learning #Python with list comprehensions, the next you are grokking map, reduce and filter.