does this code run rule

kingthrillgore@lemmy.mlbanned from sitebanned from site to 196@lemmy.blahaj.zone – 294 points –
44

You are viewing a single comment

I'd say this is pretty readable

It jams far too much on one line. Break it up. It's a mistake I see a lot on Python.

but if you do it as a for loop it would be slower

Unless you're looping over more than a million elements, that's a poor excuse.