See also string formatting: . format vs. F-string literal for in-depth comparison of the most common ways to do this kind of string formatting, and how do i put a variable’s value inside a string …

Python supports formatting values into strings. Although this can include very complicated expressions, the most basic usage is to insert values into a string with the %s placeholder.