Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: Simple exercises for a python beginner?. Parent comment
def centered_average(nums): sum(nums[1:-1]) // (len(nums) - 2)
Also, all of their examples use two spaces, not four (the python standard)
There are no comments on this comment yet.
Also, all of their examples use two spaces, not four (the python standard)