range

Erik Max Francis max at alcyone.com
Thu Mar 6 02:52:26 EST 2003


Hilbert wrote:

> Why does range(1,4,1) return [1,2,3]?
> It does not make sense at all.
> It should return [1,2,3,4].

help(range)

It counts up to but not including the stop number.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ The only way to get rid of a temptation is to yield to it.
\__/ Oscar Wilde
    Alcyone Systems / http://www.alcyone.com/
 Alcyone Systems, San Jose, California.




More information about the Python-list mailing list