"Kent Johnson" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Dick Moores wrote:
>>      return "%02d:%02d:%5.2f" % (hours, minutes, seconds)
>
> Try %05.2f
>
> The leading 0 is a 'conversion flag' that specifies zero-padding.

Sorry I should have included that in my post but I assumed it was
"obvious" since thats what you did with the %d fields...

Never assume:  it makes an ass out of u and me... :-)

Alan G 


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to