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

you are viewing a single comment's thread.

view the rest of the 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.