Python Compiler : Python

#To convert a number to binary representation, use the letter "b": txt = "The binary version of {0} is {0:b}" print(txt.format(5))