Re:Python List Comprehensions Explained Visually
by meric on Thursday December 03, 2015 @01:57AM
(#10668187)
It's a good document. I know list comprehensions already but still I found it entertaining to read - I think it'll enlighten a lot of people on this topic.
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']]
Could really be nice when explained in color.
Re:Python List Comprehensions Explained Visually
by x0 on Wednesday December 02, 2015 @11:22PM
(#10667730)
What's the font you're using in that gif? It looks good.
Re:Python List Comprehensions Explained Visually
by th on Thursday December 03, 2015 @12:06AM
(#10667865)
Inconsolata: https://en.wikipedia.org/wiki/Inconsolata
Sorry for the misleading title!