3 ms·
and then you forget range(1, 10) is a half-open interval because it's meant to be used with `length` as in `range(0, foo.length)`
by iopq 12y ago
and then you forget range(1, 10) is a half-open interval because it's meant to be used with `length` as in `range(0, foo.length)`
- serrimo 12y agoThat part has always annoyed me. But then Python beat me into submission with its seductive collection comprehension... Now I see it as a standard convention, like indexing should start with 0.