0
How does "print(int("0x68",16)) " work? how is the prefix being handled?
I understand that the 68 in it's hexadecimal form is being converted to an int, which is then converted to a string "h" via the chr() function, but how come the 0x prefix is being ignored? and why add 16 as a second parameter to int()?
1 Réponse
0
see if you can figure it out by looking at this.
https://code.sololearn.com/clOli9YsMz2K/?ref=app