string hex ke nomor hex

hex_s = '0xEFA'
a = int(hex_s,16)
hex_n = hex(a)
print(hex_n)
Upset Unicorn