Re:Python List Comprehensions Explained Visually
by exDM69 on Thursday December 03, 2015 @04:36AM
(#10668703)
This article needs some more complex examples, e.g. comprehensions with multiple "for" clauses and more complex filtering. Perhaps an example using zip or enumerate.
E.g.
cartesian_product = [(a,b) for a in [1,2,3] for b in ['a','b','c']]
E.g.
Could really be nice when explained in color.