Python’s F-Strings

Complete implementation guide with code….

Naina Chaturvedi
DataDrivenInvestor
Published in
5 min readDec 3, 2020

--

Pic credits : Pinterest

Python F-String are used to embed python expressions inside string literals for formatting, using a minimal syntax. It’s an expression that’s evaluated at the run time. They have the f prefix and use {} brackets to evaluate values. f-strings are faster than %-formatting and str.format().

--

--

🇺🇸,World Traveler, Sr. SDE, Researcher Cornell Uni, Women in Tech, Coursera Instructor ML & GCP, Trekker, IITB,Reader,I write for fun@AI & Python publications