Now that I understand what you want -

for b in range(120):
 print '%0*i' % (max(2,int(math.log10(b))), b)

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

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to