[Tutor] makeing '1' into a '01' neatly ?

Alan Gauld alan.gauld at blueyonder.co.uk
Wed Apr 28 09:59:45 EDT 2004


> Is there an neat way to format a '1' into a '01' ?

>>> print "%02d" % int('1')
01
>>>

HTH,

Alan G



More information about the Tutor mailing list