5SpeedDeasil@lemmy.world to Memes@lemmy.ml · 2 years agoRandom internet people explaining math better then math teacheri.imgur.comexternal-linkmessage-square198fedilinkarrow-up11.18Karrow-down144cross-posted to: [email protected]
arrow-up11.14Karrow-down1external-linkRandom internet people explaining math better then math teacheri.imgur.com5SpeedDeasil@lemmy.world to Memes@lemmy.ml · 2 years agomessage-square198fedilinkcross-posted to: [email protected]
minus-square0xff@lemmy.worldlinkfedilinkarrow-up8·2 years agoWhat’s wrong with list comprehensions? Do I just have Stockholm Syndrome at this point? I would skip the square brackets and just use a generator expression: sum(3*n for n in range(5)).
What’s wrong with list comprehensions? Do I just have Stockholm Syndrome at this point?
I would skip the square brackets and just use a generator expression:
sum(3*n for n in range(5))
.