I often use generator expressions for the intermediate values (so I don't allocate a new list for each step), but I find this to be much more readable.
I often use generator expressions for the intermediate values (so I don't allocate a new list for each step), but I find this to be much more readable.