Posts in coding
Formatting Strings in Python
- 18 March 2025
PEP-750 is quite close to being accepted - introducing yet another way to interpolate and format strings. In this post, we go through all the different ways of formatting strings in Python, to get an idea of how string interpolation evolved to where it is now. We’ll start off with a formatting style introduced at the birth of python, all the way to a PEP for a brand new feature for string formatting!
Stolen from the C programming language, python supports the following syntax: