A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://realpython.com/lessons/f-strings-conclusiongo-forth-and-format/ below:

F-Strings Conclusion—Go Forth and Format! (Video) – Real Python

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

F-Strings Conclusion—Go Forth and Format!

This lesson concludes Python 3’s f-Strings: An Improved String Formatting Syntax. You’ll watch a review of everything you have learned in this course.

Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.

00:01 Congratulations! You’ve made it to the end. Let’s do a short review of what you’ve learned throughout this course. First off, I showed you old-school string formatting, talking about option one, which was %-formatting, and then str.format().

00:25 After reviewing the old, I showed you the new and improved way, f-strings. I showed you how simple the syntax is.

00:36 Then I took you into arbitrary expressions. I showed you how to use multiline f-strings. And then you did a speed comparison. Then I took you through some of the pesky details, working with the different forms of quotation marks.

01:06 Continuing on the theme of quotation marks, how you need to be cautious with dictionaries and the quotations inside of them. Then working with braces, backslashes, and if you want to use inline comments, which you have to be careful of.

01:31 Thanks again for joining me for this review and this course, and I hope you now see how much more concise, readable, and convenient—and faster!—f-strings can be. Thanks!

Course Contents


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4