What is the advantage of making the end index in the Python slice syntax yield characters from "start" to "end-1"?
That is, I understand that if a = [2,3,4], then a[0:2] yields [2,3], and a[1:3] yields [3,4]. I see the intuitive meaning of "the first 2 characters" for the a[0:2] case, but I fail to see how it's clear for other cases without 0 as the start index. It would seem more intuitive to just make the syntax from "start" to "end", instead.
Or are there advantages to this syntax that I'm not seeing?