loop

MRAB python at mrabarnett.plus.com
Sun Mar 23 20:50:55 EDT 2014


On 2014-03-24 00:35, pabloeruggeri at 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
>
Probably better to use a 'while' loop instead, multiplying by 10 on
each iteration until the number exceeds 10 million.



More information about the Python-list mailing list