>>> range(1,11)
gives you
[1,2,3,4,5,6,7,8,9,10]
Why not 1-11?
Did they just decide to do it lik
Exclusive ranges do have some benefits:
For one thing each item in range(0,n) is a valid index for lists of length n.
range(0,n)
n
Also range(0,n) has a length of n, not n+1 which an inclusive range would.
n+1