I don't think it does. Are you aware that "range(1,10)" in Python is the list [1, 2, 3, 4, 5, 6, 7, 8, 9] ??
Ranges in Python don't include their endpoint. A few people have expressed confusion as to this choice in the design, but it means that the expression:
range(a,b) + range(b,c) + range(c,d)
includes everything from a to d-1 one and only once. Knuth said that intervals should include the initial point and not the endpoint for this reason.