Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68854
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Marko Rauhamaa <marko@pacujo.net> |
| Newsgroups | comp.lang.python |
| Subject | Re: loop |
| Date | Mon, 24 Mar 2014 09:47:44 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 14 |
| Message-ID | <87fvm811i7.fsf@elektro.pacujo.net> (permalink) |
| References | <e2be2ed8-e2b8-427c-b826-e7240ecc5bdf@googlegroups.com> <mailman.8426.1395622335.18130.python-list@python.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Injection-Info | mx05.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="10369"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191u+VZxticBJxW3kBwdm2X" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
| Cancel-Lock | sha1:u0XCglpk16mbj2c1csTfZ67pMNU= sha1:KKxm6VXKvdEP0+yhQULLp6VJheU= |
| Xref | csiph.com comp.lang.python:68854 |
Show key headers only | View raw
Chris Angelico <rosuav@gmail.com>:
> On Mon, Mar 24, 2014 at 11:35 AM, <pabloeruggeri@gmail.com> wrote:
>> I'm trying to create a for loop that starts at 100 and goes to 10Mllion.
>
> That sounds like a logarithmic scale.
How about:
for i in [ 100, 1000, 10000, 100000, 1000000, 10000000, 100000000 ]:
...
Marko
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
loop pabloeruggeri@gmail.com - 2014-03-23 17:35 -0700
Re: loop MRAB <python@mrabarnett.plus.com> - 2014-03-24 00:50 +0000
Re: loop pabloeruggeri@gmail.com - 2014-03-23 17:57 -0700
Re: loop Chris Angelico <rosuav@gmail.com> - 2014-03-24 11:52 +1100
Re: loop Marko Rauhamaa <marko@pacujo.net> - 2014-03-24 09:47 +0200
Re: loop Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-03-24 09:40 +0000
Re: loop Marko Rauhamaa <marko@pacujo.net> - 2014-03-24 12:04 +0200
Re: loop Chris Angelico <rosuav@gmail.com> - 2014-03-24 21:58 +1100
Re: loop Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-03-24 00:56 +0000
Re: loop anton <bupphairodazz@yandex.ru> - 2014-03-23 17:59 -0700
Re: loop Mark H Harris <harrismh777@gmail.com> - 2014-03-23 22:30 -0500
Re: loop Ben Finney <ben+python@benfinney.id.au> - 2014-03-24 13:31 +1100
csiph-web