SyntaxFix
Write A Post
Hire A Developer
Questions
provided I understood correctly, you should look for binascii.unhexlify
import binascii a='45222e' s=binascii.unhexlify(a) b=[ord(x) for x in s]