4 ms·
I agree. I was using "List Comprehensions: Now In Color" as a working title but I thought that was too nonsensical. It was actually the colorized code and not
by th 11y ago
I agree. I was using "List Comprehensions: Now In Color" as a working title but I thought that was too nonsensical. It was actually the colorized code and not the gifs in particular that made me think "visual".
Sorry for the misleading title!
- x0 11y agoWhat's the font you're using in that gif? It looks good.
- meric 11y agoIt'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.
- exDM69 11y agoThis 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.