Ad
  • Custom User Avatar

    I don't understand what you mean by "The Hex function in python doesn't do that".
    hex(10)
    '0xa'
    hex(12)
    '0xc'
    I get the same on Python 2.7 and 3.6. Or did I miss something?