list of range of floats
Steve
samckain at southslope.net
Wed Feb 14 12:30:31 EST 2007
On Wed, 14 Feb 2007 17:27:06 +0000, Dale Strickland-Clark wrote:
> 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.
I was afraid of that. Thanks for the quick reply.
Steve
More information about the Python-list
mailing list