range

Hilbert hilbert at microsoft.com
Thu Mar 6 11:04:28 EST 2003


Thanks for all the info!

For iterating over elements it's definately a good idea to
keep the upper limit open.

Also thanks for telling me how to unforce integer division.


Thanks,
Hilbert



"Hilbert" <hilbert at microsoft.com> wrote in message
news:v6dv6vnlndj84b at corp.supernews.com...
> Hello,
>
> Why does range(1,4,1) return [1,2,3]?
> It does not make sense at all.
> It should return [1,2,3,4].
>
> Am I crazy?
> Hilbert
>
> (also 1/2 should return 0.5, but that's another thread)
>
>






More information about the Python-list mailing list