Lists and Decimal numbers

Alister alister.ware at ntlworld.com
Wed Mar 20 21:47:28 CET 2013


On Wed, 20 Mar 2013 20:00:38 +0000, Grant Edwards wrote:

> On 2013-03-20, Alister <alister.ware at ntlworld.com> wrote:
> 
>> and a list comprehension would streamline things further
>>
>> t=[round(x*1.0/60),4 for x in range(1440)] #compatible with V2.7 &
>> V3.0)
> 
> There's a typo in the above.  It should be:
> 
>  t = [round((x*1.0/60),4) for x in range(1440)]

Indeed a typo
Many thanks for correcting



-- 
"MacDonald has the gift on compressing the largest amount of words into
the smallest amount of thoughts."
		-- Winston Churchill



More information about the Python-list mailing list