Hacker News new | ask | show | jobs
by _pius 6200 days ago
weekly = [sum(daily[j:j+7]) for j in range(0, len(daily), 7)]

While I appreciate the general sentiment that high-level languages will take over the world, there is very little that's new in this article and I am not impressed by the showpiece Python code from the article. For loops are the future?

1 comments

Well I guess the list comprehension and list slicing features in the above example are more interesting than the for loop.