Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #68830

Re: loop

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: loop
Date 2014-03-24 00:56 +0000
References <e2be2ed8-e2b8-427c-b826-e7240ecc5bdf@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.8427.1395622631.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 24/03/2014 00:35, pabloeruggeri@gmail.com wrote:
> Hello,
>
> I'm trying to create a for loop that starts at 100 and goes to 10Mllion. The increments are like this: 100, 1000, 10000, ..... Basicaly adding a zero each iteration. I'm having problems trying to do it. Can somebody help me
>

Start by rereading this 
http://docs.python.org/3/tutorial/controlflow.html#for-statements, give 
it another go and if you have problems post your code inline here and 
we'll help you out.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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