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>
You can simply write
hex(x)[2:]
to get the first two characters removed.