Hacker News new | ask | show | jobs
by lisper 4480 days 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