Result Size: 625 x 571
demo_string_placeholder10.py:
x
 
#Use "b" to convert the number into binary format:
txt = "The binary version of {0} is {0:b}"
print(txt.format(5))
C:\Users\My Name>python demo_string_placeholder10.py
The binary version of 5 is 101