(May-19-2023, 11:03 AM)deanhystad Wrote: Use int() to convert numeric strings to int objects.
print(int("0x3846", 16)) (str, base)Python does not 16 bit (or any fixed number of bits) ints, so signed/unsigned is not a thing in Python.
Output:14406
Thanks but my source is your result
Source: 13889
Result ASCII hex code: 6A = ASCII 6 as 0x36 and A as 0x41
The first step is convert 13889 to 0x3641 and then to ASCII string 6A and finally swap string result to A6