I have a similar questions as this one: I have strings which contain hex values such as "0x8F"
which I need to convert to hex. Using the previous answer and doing
int("0x8F", 16)
works, but the result is displayed as a regular int (143 in the example).
Is it possible to keep the format as hex after conversion??