Let's use as an example the hex string 0x790x760x7d0x7d0x80.
ct=input()
hex_list=ct.split('0x')
print(hex_list)
ascii_values=[]
for i in hex_list:
if i!="" :
(ascii_values).append(ascii(i))
print(ascii_values)
I'm getting this output:
['', '79', '76', '7d', '7d', '80']
["'79'", "'76'", "'7d'", "'7d'", "'80'"]
But the desired output would be the hex values converted into ASCII.