Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Bug in list comprehensions?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Fredrik Lundh, post: 1883891"] reading the documentation may help: /.../ the elements of the new list are those that would be produced by considering each of the for or if clauses a block, nesting from left to right, and evaluating the expression to produce a list element each time the innermost block is reached. the clauses nest from left to right, not from right to left, so "[x for x in y for y in beta]" is equivalent to out = [] for x in y: for y in beta: out.append(x) </F> [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Bug in list comprehensions?
Top