3 ms·
This. 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.
by alfons_foobar 2y ago
This.
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.