Result Size: 625 x 571
demo_string_placeholder20.py:
x
 
#Use "x" to convert the number into Hex format:
txt = "The Hexadecimal version of {0} is {0:x}"
print(txt.format(255))
C:\Users\My Name>python demo_string_placeholder20.py
The Hexadecimal version of 255 is ff