Python's Format Mini-Language for Tidy Strings - Real Python
Briefly

In Python, you'll find three popular tools that allow you to perform string interpolation: The modulo operator is sort of an old-fashioned tool. It was the first string interpolation tool in Python. Unfortunately, it doesn't provide many string formatting features. So, in this tutorial, you'll focus on the str.format() method and f-strings.
You can use .format() in several ways. In the example above, the replacement field is empty. However, you can use zero-based indices to define a specific insertion order. You can also use named fields:
Read at Realpython
[
]
[
|
]