kingthrillgore to [email protected] • 7 months agodoes this code run rulelemmy.mlimagemessage-square44fedilinkarrow-up1294arrow-down10
arrow-up1294arrow-down1imagedoes this code run rulelemmy.mlkingthrillgore to [email protected] • 7 months agomessage-square44fedilink
minus-square@[email protected]linkfedilink7•7 months agoIt jams far too much on one line. Break it up. It’s a mistake I see a lot on Python.
minus-square@[email protected]linkfedilink3•7 months agobut if you do it as a for loop it would be slower
minus-square@[email protected]linkfedilink2•7 months agoUnless you’re looping over more than a million elements, that’s a poor excuse.
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