Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why Python uses 0-based indexing. It's because of slices . Parent comment
The languages that do this seem to pretty uniformly use closed intervals, so that [1:length] is the whole thing, while in python [0:length] is.
There are no comments on this comment yet.
The languages that do this seem to pretty uniformly use closed intervals, so that [1:length] is the whole thing, while in python [0:length] is.