String Formatting

f-strings (Formatted String Literals) – Python 3.6+
f"some text {expression} more text"Example
Advanced formatting with f-strings
str.format() Method – Python 2.7+ / 3.x
Placeholder
Description
Example
Padding and alignment
Last updated