# Python References ## Strings https://docs.python.org/3/library/string.html#format-specification-mini-language ```{code-block} python > # Format floating point number to two decimal places > print('{:.2f}'.format(2.123)) 2.12 > # Make width = 6 characters, continue to format > print('{:06f}'.format(2.123)) 002.12 ```