7 points · by asicsp · 1y ago · 2 comments
I will say that even after using Python for over 15 years, the syntax for nested list comprehensions has a rather... incomprehensible order.
I remember reading a blog post pointing out that the for-loop order stays the same between comprehensions and normal nested code. You write the outer loop first.