breamoreboy at yahoo.co.uk
Mon Mar 24 10:40:51 CET 2014
On 24/03/2014 07:47, Marko Rauhamaa wrote:
> Chris Angelico <rosuav at gmail.com>:
>> On Mon, Mar 24, 2014 at 11:35 AM, <pabloeruggeri at 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.
This email is free from viruses and malware because avast! Antivirus protection is active.
More information about the Python-list