how to keep hex in integer python code example Example: print hexadecimal in python print (hex(value))