Re:Python List Comprehensions Explained Visually
by dragonwriter on Wednesday December 02, 2015 @08:34PM
(#10667155)
The problem is that the relation of the body to the loop specifications is reversed, so the inner loop is most proximate to the body in the first, but most distant from the body in the second.
The specification of the inner loop should always be most proximate to the body, not last independent of the location of the body.
The specification of the inner loop should always be most proximate to the body, not last independent of the location of the body.