Programmers do prefer 0-based indexing, which is why it's bizarre that Python uses 1-based indexing for stop positions. I don't know many computing languages, but they've all had only one convention. Python has two. The for-loop examples here are deceptive. When I write "5:12", or "range(5, 12, 3)", I mean "go from 5 to 12". If I wanted 11, that's what I would have written. You use one —
bzip2 33 secs ago