How to interpret hex contained in a string a bytes in Python Let’s say I have a string containing hex value without the hex special char such as: