Re: Multiples of a number

2005-11-06 Thread Ivan Shevanski
On 11/5/05, Steven D'Aprano <[EMAIL PROTECTED]> wrote: On Sun, 06 Nov 2005 02:39:40 +0100, Carl Friedrich Bolz wrote:> Hi!>> Ivan Shevanski wrote:>> I've searched on google for a bit but I can't seem to find a way to get>> multiples of a number. .

Re: Multiples of a number

2005-11-05 Thread Robert Kern
Steven D'Aprano wrote: > Another way is, if you aren't doing anything *except* counting for the > other 99 values of x, just skip them completely: > > fox x in range(20): > do_something(x*100) > > Ivan, what are you trying to do? Presumably he's doing something substantive on every 1-increm

Re: Multiples of a number

2005-11-05 Thread Steven D'Aprano
On Sun, 06 Nov 2005 02:39:40 +0100, Carl Friedrich Bolz wrote: > Hi! > > Ivan Shevanski wrote: >> I've searched on google for a bit but I can't seem to find a way to get >> multiples of a number. . .For instance what would I do if I wanted >> something to h

Re: Multiples of a number

2005-11-05 Thread Carl Friedrich Bolz
Hi! Ivan Shevanski wrote: > I've searched on google for a bit but I can't seem to find a way to get > multiples of a number. . .For instance what would I do if I wanted > something to happen every time x reached a multiple of 100 in this > sample code: > > x =

Multiples of a number

2005-11-05 Thread Ivan Shevanski
I've searched on google for a bit but I can't seem to find a way to get multiples of a number. . .For instance what would I do if I wanted something to happen every time x reached a multiple of 100 in this sample code: x = 0 while x < 2000: x += 1 Thanks in advance, -