New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How to use list comprehension
list comprehension
1 Answer
+ 2
I think this page is simply and well explaining list comprehension:
http://treyhunner.com/2015/12/JUMP_LINK__&&__python__&&__JUMP_LINK-list-comprehensions-now-in-color/
(maybe the origin of the @M Squared code ;P)