string — Common string operations — Python 3.15.2 documentation
Format examples. Template strings ($-strings). Helper functions.It predates str.format(), formatted string literals, and template string literals. It is unrelated to template string literals (t-strings), which were introduced in Python 3.14.