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.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to