Python: print a variable in hex,print(' '.join(hex(ord(n)) for n in my_hex))