Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Scarblac
· 11y ago · 0 comments
And I prefer
sum(i + 2 for i in range(1, 10))
for readability. But we shouldn't judge languages on this sort of thing -- because then why don't we just write sum(range(3, 12)), or 63?
Comments
[–]
pixie_
11y ago
In both those cases you have to read it backwards to see what it does.