this post was submitted on 22 Nov 2023
1 points (100.0% liked)
196
16423 readers
1924 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
People used to argue that Python was incredibly readable. Then I started seeing shit like this.
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.
or you're doing this a million times