[Tutor] range()-like function for dealing with floats...?

Joydeep Mitra snakepit.rattlesnakes at gmail.com
Fri Mar 30 11:17:26 CEST 2007


Hi all,
I need to generate a sequence of real numbers that are evenly spaced. I have
used loops for this purpose until now, but it gets kinna messy when you
gotta do it a number of times in a program.
The range function, as per my knowledge, accepts parameters and return
values only as integers.
Is there a function in python, which performs the task of the range()
function with floats?

Joy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070330/6f91d321/attachment.htm 


More information about the Tutor mailing list