Python Compiler : Python

#To demonstrate, we insert the number 6 to set the available space for the value to 6 characters. #Use "^" to center-align the value: txt = "We have {:^6} cats." print(txt.format(50))