Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41622
| From | Alister <alister.ware@ntlworld.com> |
|---|---|
| Subject | Re: Lists and Decimal numbers |
| Newsgroups | comp.lang.python |
| References | <9d8e4386-e6f5-4303-8a6a-be2a16e45ce7@googlegroups.com> <mailman.3567.1363794723.2939.python-list@python.org> <t_n2t.145340$927.82085@fx23.fr7> <kid4h6$1hv$1@reader2.panix.com> |
| Message-ID | <Afp2t.202953$VO5.3067@fx20.fr7> (permalink) |
| Organization | virginmedia.com |
| Date | 2013-03-20 20:47 +0000 |
On Wed, 20 Mar 2013 20:00:38 +0000, Grant Edwards wrote: > On 2013-03-20, Alister <alister.ware@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
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Lists and Decimal numbers Ana DionĂsio <anadionisio257@gmail.com> - 2013-03-20 08:27 -0700
Re: Lists and Decimal numbers Wanderer <wanderer@dialup4less.com> - 2013-03-20 08:48 -0700
Re: Lists and Decimal numbers Peter Otten <__peter__@web.de> - 2013-03-20 16:52 +0100
Re: Lists and Decimal numbers Alister <alister.ware@ntlworld.com> - 2013-03-20 19:20 +0000
Re: Lists and Decimal numbers Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-20 19:53 +0000
Re: Lists and Decimal numbers Grant Edwards <invalid@invalid.invalid> - 2013-03-20 20:00 +0000
Re: Lists and Decimal numbers Alister <alister.ware@ntlworld.com> - 2013-03-20 20:47 +0000
csiph-web