range(start,stop)
Thomas A. Bryan
tbryan at python.net
Sat Feb 12 08:31:17 EST 2000
Stephane BAUSSON wrote:
>
> Hello
>
> Just a question for a Python expert ...
> What the interest for the range function to stop at stop-1 and not at
> stop ?
In addition to the other things already mentioned, I happen to like
the fact that
for element in range(a,b):
do_something
for element in range(b,c):
do_something
is the same as
for element in range(a,c):
do_something
---Tom
More information about the Python-list
mailing list