2 ms·
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 wr
by Scarblac 11y ago
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?
- pixie_ 11y agoIn both those cases you have to read it backwards to see what it does.