f-strings in Python

DevTechie
DevTechie
Published in
5 min readMay 13, 2024

--

f-strings in Python

Before Python 3.6, there were two basic tools for interpolating (mixing) values, variables, and expressions within string literals — (1) The string interpolation operator (%) (the math’s modulo operator) and (2) The string.format() method. This article talks about the new feature — “f-strings” “f-strings” were introduced in Python 3.6.

f-strings

--

--