[Tutor] blank space after a number

bob gailer bgailer at gmail.com
Wed Dec 29 02:23:44 CET 2010


On 12/28/2010 8:09 PM, bob gailer wrote:
> Now that I understand what you want -
>
> for b in range(120):
>  print '%0*i' % (max(2,int(math.log10(b))), b)
>
Sorry forgot to add
import math

-- 
Bob Gailer
919-636-4239
Chapel Hill NC



More information about the Tutor mailing list