[portland] Step Value in range()

Dylan Reinhardt python at dylanreinhardt.com
Fri May 2 18:46:44 CEST 2008


On Fri, May 2, 2008 at 9:44 AM, Dylan Reinhardt
<python at dylanreinhardt.com> wrote:
>  [ i/1000.0 for i in range(10) ]
>
>  To get the floats 0 to .9, stepping .001

Check that... 0 to .009, stepping .001

Kirby's solution is probably the correct one, though.


More information about the Portland mailing list