3 Useful Python f-string Tricks You Probably Don’t Know

Things you need to know about Python’s formatted string literals (f-string)

Jerry Ng
Better Programming
Published in
5 min readJul 6, 2021

--

Glasses with Code Behind
Photo by Kevin Ku on Unsplash

Long gone are the days when Python developers used the % operator to perform string formatting in Python.

Sometime later down the road when Python 3.0 was introduced, common use of the % the operator was gradually…

--

--