[Tutor] range() help

Necmettin Begiter necmettin.begiter at gmail.com
Tue Apr 17 13:55:30 CEST 2007


On Tuesday 17 April 2007 14:42:50 python at uni-code.com wrote:
> >>> range(-10, -100, -30)
>
> [-10, -40, -70]
>
> How come it prints on -40 or -70.
>
> Does -70 come from -70 -> -100?
>
from -10 to -100 (excluding -100)
-10-30 = -40
-40-30= -70


More information about the Tutor mailing list