Why are slice and range upper-bound exclusive?
Disclaimer: I am not asking if the upper-bound stopargument of slice()and range() is exclusive or how to use these functions. Calls to the rangeand slicefunctions, as well as the slice notation [start:stop] all refer to sets of integers. range([start], stop[, step]) slice([start], stop[, step]) In all these, the stop integer is excluded. I am wondering … Read more