hexstring = "4869"
a_string = bytes.fromhex(hexstring)
a_string = a_string.decode("ascii")
print(a_string)
>>> import binascii
>>> binascii.hexlify(b'Blaah')
b'426c616168'
# int into hex
_hex = hex(42) # hexadecimal string
# hex into int
# you must specify base 16 as 2nd param as this tells python you're
# working with hexadecimal
int_hex = int(_hex, 16) # returns an integer
y=255
z=170
print(f'Hex Form: y={y:x} z={z:x} ')
#output
Hex Form: y=ff z=aa