5SpeedDeasil@lemmy.world to Memes@lemmy.ml · 1 year agoRandom internet people explaining math better then math teacheri.imgur.comexternal-linkmessage-square195fedilinkarrow-up11.72Karrow-down162cross-posted to: math@lemmy.world
arrow-up11.66Karrow-down1external-linkRandom internet people explaining math better then math teacheri.imgur.com5SpeedDeasil@lemmy.world to Memes@lemmy.ml · 1 year agomessage-square195fedilinkcross-posted to: math@lemmy.world
minus-square0xff@lemmy.worldlinkfedilinkarrow-up8·1 year 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))
.