Result Size: 625 x 571
demo_string_placeholder3.py:
x
 
#To demonstrate, we insert the number 8 to set the available space for the value to 8 characters.
#Use "^" to center-align the value:
txt = "We have {:^8} chickens."
print(txt.format(49))
C:\Users\My Name>python demo_string_placeholder3.py
We have    49    chickens.