Arithmetic sequences in Python

Roy Smith roy at panix.com
Mon Jan 16 13:41:26 EST 2006


Alex Martelli <aleax at mail.comcast.net> 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]:
    blah




More information about the Python-list mailing list