The hex() function in python, puts the leading characters 0x in front of the number. Is there anyway to tell it NOT to put them? So 0xfa230>
hex()
0x
0xfa230>
Old style string formatting:
In [3]: "%02x" % 127 Out[3]: '7f'
New style
In [7]: '{:x}'.format(127) Out[7]: '7f'
Using capital letters as format characters yields uppercase hexadecimal
In [8]: '{:X}'.format(127) Out[8]: '7F'
Docs are here.