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 _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor