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. .
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
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
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 =
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,
-