Fastest way to loop through each digit in a number?
Dieter Buys
dieter.buys at gmail.com
Mon Sep 6 03:51:36 EDT 2004
Previous message (by thread):
Fastest way to loop through each digit in a number?
Next message (by thread):
Fastest way to loop through each digit in a number?
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
n2 = n while n2 > 0: d = n2 % 10 n2 /= 10 foo(d)
Previous message (by thread):
Fastest way to loop through each digit in a number?
Next message (by thread):
Fastest way to loop through each digit in a number?
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-list mailing list