convert_hex_to_ascii_3.py
# Python program using the native method to convert bytes to ASCII string
# take hexadecimal string
hex_str = '0x68 0x65 0x6c 0x6c 0x6f'
# convert hex string to ASCII string
string = ''.join(chr(int(i, 16)) for i in hex_str.split())
# printing ASCII string
print('ASCII String:', string)
Shy Skunk