Arithmetic sequences in Python

Roy Smith roy at
Mon Jan 16 19:41:26 CET 2006

Alex Martelli <aleax at> wrote:
>Agreed.  *IF* we truly needed an occasional "up to X *INCLUDED*"
>sequence, it should be in a syntax that can't FAIL to be noticed, such
>as range(X, endincluded=True).

How about...

for i in (0..x]:

More information about the Python-list mailing list