hexcode for char python code example
Example 1: python char to hex
tmp = "hello world"
print("".join(["{:02x}".format(ord(c)) for c in tmp]))
Example 2: get hex code of character python
hex(ord("c"))
tmp = "hello world"
print("".join(["{:02x}".format(ord(c)) for c in tmp]))
hex(ord("c"))