Python 3's F-Strings: An Improved String Formatting Syntax

Christopher Bailey

As of Python 3.6, f-strings are a great new way to format strings. Not only are they more readable, more concise, and less prone to error than other ways of formatting, but they are also faster! By the end of this course, you’ll know how and why to start using f-strings today.

What’s Included:

Related Learning Paths:

About Christopher Bailey

Christopher Bailey is the creator and host of the Real Python podcast. He also manages the video course pipeline, coordinating with the video course creators and our in house editor. He is a programmer and data analyst.

» More about Christopher

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

Participant Comments

Avatar image for DoubleA

DoubleA

Thank you so much for the references. Going to check those out! Keep on delivering the great stuff! 🔥🔥🔥

Avatar image for Phil M

Phil M

Excellent - thank you!

Avatar image for Pygator

Pygator

Always informative and right to the point Chris!

Avatar image for teodorwisniewski

teodorwisniewski

Thanks you Chris, it is very useful and allowed me to understand some messy syntaxes used by some developers around strings.

Avatar image for Mallesham Yamulla

Mallesham Yamulla

Many thanks for taking us though the concepts from Old String Formating to New F string formatting.. Highly recommended to the python folks…

Avatar image for Bomes

Bomes

Great tutorial! Thanks

Avatar image for Andras Novoszath

Andras Novoszath

Lol, this is ridiculously good! :)

← Browse All Courses