Re:Why People Should Learn Python
by lmm on Wednesday August 24, 2016 @10:32AM
(#12352308)
I find the order of iteration in Python for comprehensions totally confusing every time. If you want to convert:
into a comprehension, you write:
Simple, right? So to convert
I obviously write:
Bzzt. Nope, you have to write it in middle-endian order to get the same behaviour.
[ Parent
| on HN ]
There are no comments on this comment yet.