Convert from ASCII string encoded in Hex to plain ASCII?

StackOverflow

How can I convert from hex to plain ASCII in Python?

Note that, for example, I want to convert "0x7061756c" to "paul".

Answer rating: 240

A slightly simpler solution:

>>> "7061756c".decode("hex")
"paul"




Get Solution for free from DataCamp guru