list of range of floats

Dale Strickland-Clark dale at nospam.riverhall.co.uk
Wed Feb 14 12:27:06 EST 2007


Steve wrote:

> I'm trying to create a list range of floats and running into problems.
> I've been trying something like:
> 
> a = 0.0
> b = 10.0
> 
> flts = range(a, b)
> 
> fltlst.append(flts)
> 
> When I run it I get the following DeprecationWarning: integer argument
> expected, got float. How can I store a list of floats?
> 
> TIA
> Steve

range only does ints. If you want floats, you'll have to write your own
version.




More information about the Python-list mailing list