On Wed, May 19, 2010 at 11:38 AM, Back9 <backgoodoo at gmail.com> wrote: > Hi, > > When converting a hex value, I'd like to preserve the decimal > position. > For example, 0x0A is converted to 0A not just A in string. > > How do I do this? > > TIA > -- > http://mail.python.org/mailman/listinfo/python-list > |109> '%02X' % 10 <109> '0A'