Nov-25-2022, 07:18 PM
16 is a second argument to int(). It is assumed that the string contains hexadecimal characters and it is converted to int in base 16. For example
>>> int("000002A3", 16) 675 >>> chr(int("000002A3", 16)) 'ʣ' >>> '\N{LATIN SMALL LETTER DZ DIGRAPH}' 'ʣ'for the character 'LATIN SMALL LETTER DZ DIGRAPH'