On 24/03/2014 07:47, Marko Rauhamaa wrote:
Chris Angelico <ros...@gmail.com>:
On Mon, Mar 24, 2014 at 11:35 AM, <pabloerugg...@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 ]:
...
Why the overhead of creating a list when you could use a tuple? :)
--
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
--
https://mail.python.org/mailman/listinfo/python-list