for with decimal values?

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Sat May 2 14:01:39 EDT 2009


Esmail:
> Is there a Python construct to allow me to do something like
> this:
>     for i in range(-10.5, 10.5, 0.1):

Sometimes I use an improved version of this:
http://code.activestate.com/recipes/66472/

Bye,
bearophile



More information about the Python-list mailing list