SyntaxFix
Write A Post
Hire A Developer
Questions
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