2 ms·
> I always forget that [1:3] is not all inclusive. It's actually just range from 1 to 2. Just remember that for positive indices, len(slice(n,m)) == m - n
by lisper 13y ago
> I always forget that [1:3] is not all inclusive. It's actually just range from 1 to 2.
Just remember that for positive indices, len(slice(n,m)) == m - n