Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок+ 1
How to use list comprehension
list comprehension
1 ответ
+ 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)