String Formatting

Sebastian Witowski
6 min readMar 2, 2023

One of the most well-received features introduced in Python 3.6 were the f-strings. Unlike the walrus operator (introduced in Python 3.8), f-strings quickly became popular — it’s hard to find someone who doesn’t love them! Officially named literal string interpolation, f-strings are much more readable and faster to write. And if you come from a language like JavaScript, you will feel at home using them because they work the same as template literals

--

--

Sebastian Witowski

Python consultant and freelancer at switowski.com. Writes about productivity, tools, Python, and programming best practices.