Lists and Decimal numbers
Grant Edwards
invalid at invalid.invalid
Wed Mar 20 16:00:38 EDT 2013
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)]
--
Grant Edwards grant.b.edwards Yow! On the road, ZIPPY
at is a pinhead without a
gmail.com purpose, but never without
a POINT.
More information about the Python-list
mailing list