Python Compiler : Python

#Use "x" to convert the number into Hex format: text = "The Hexadecimal version of {0} is {0:x}" print(text.format(333))