Formatting Python Strings

Liam Pulsifer

Liam Pulsifer 7 Lessons 32m
basics python

In this course, you’ll see two items to add to your Python string formatting toolkit. You’ll learn about Python’s string format method and the formatted string literal, or f-string. You’ll learn about these formatting techniques in detail and add them to your Python string formatting toolkit.

In this course, you’ll learn about:

  1. The string .format() method
  2. The formatted string literal, or f-string

About Liam Pulsifer

Liam Pulsifer Liam Pulsifer

Liam is a software engineer and avid Pythonista. When he's not writing code to automate all of his daily tasks, you can often find him running, playing basketball and tennis, reading, or eating good food.

» More about Liam

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:

« Browse All Courses