Python Compiler : Python

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