for with decimal values?

Esmail ebonak at hotmail.com
Sat May 2 17:12:30 CEST 2009


Hello all,

Is there a Python construct to allow me to do something like
this:

    for i in range(-10.5, 10.5, 0.1):
      ...

If there is such a thing already available, I'd like
to use it, otherwise I can write a function to mimic this,
but I thought I'd check (my search yielded nothing).

Thanks,
Esmail




More information about the Python-list mailing list