for with decimal values?

Aahz aahz at pythoncraft.com
Sat May 2 17:17:27 CEST 2009


In article <mailman.4975.1241277173.11746.python-list at python.org>,
Esmail  <ebonak at hotmail.com> wrote:
>
>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).

Write a function
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Typing is cheap.  Thinking is expensive."  --Roy Smith



More information about the Python-list mailing list