The hex()
function is used to convert an integer number to a hexadecimal string, prefixed by '0x'. The hexadecimal notation is the representation of integers in the base 16, the notation uses digits 0 - 9 and characters from A - F.
hex(x)
copy
x |
A decimal integer(in base 10) that is to be converted to hexadecimal representation |