Python Compiler : Python

#Use "d" to convert a number, in this case a binary number, into decimal number format: txt = "We have {:d} cats." print(txt.format(0b1001))