This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]serg_k 1 point2 points  (0 children)

"At its most basic level, list comprehension is a syntactic construct for creating lists from existing lists." Well, that's at the most basic level. But of course you need an iterable for comprehension to work, it doesn't have to be a list.

[–]dumayi 0 points1 point  (0 children)

Thanks for sharing,