python some characters are hex in a string code example
Example 1: get hex code of character python
import codecs
codecs.encode(b"c", "hex")
Example 2: get hex code of character python
hex(ord("c"))
import codecs
codecs.encode(b"c", "hex")
hex(ord("c"))