Run »
#Use "x" to convert the number into Hex format: txt = "The Hexadecimal version of {0} is {0:x}" print(txt.format(255))
The Hexadecimal version of 255 is ff