Movatterモバイル変換


[0]ホーム

URL:


F-Strings in Python 3.6

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

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:

Start Now

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

9 Lessons 22m

  1. 1. What Are "F-Strings" in Python?00:25
  2. 2. "Old-School" String Formatting in Python05:27
  3. 3. The Simple Syntax of F-Strings01:20
  4. 4. Embedding Arbitrary Expressions in F-Strings04:00
  5. 5. Multiline F-Strings02:55
  6. 6. F-Strings Speed Considerations & Performance02:11
  7. 7. Python F-Strings: The Pesky Details04:32
  8. 8. Python 3's F-Strings: An Improved String Formatting Syntax (Quiz)
  9. 9. F-Strings Conclusion—Go Forth and Format!01:42
Start Now

AboutChristopher Bailey

Chris is an avid Pythonista and creates video tutorials for Real Python. He is a programmer and data analyst. He creates music under the name Tripnet. Chris lives in Colorado with his wife and two dogs.

» 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:

Related Courses:

Participant Comments

Avatar image for DoubleA

DoubleA onFeb. 13, 2021

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 onFeb. 14, 2020

Excellent - thank you!

Avatar image for Pygator

Pygator onDec. 24, 2019

Always informative and right to the point Chris!

Avatar image for teodorwisniewski

teodorwisniewski onOct. 20, 2019

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 onSept. 2, 2019

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

Great tutorial! Thanks

Avatar image for Andras Novoszath

Andras Novoszath onMarch 16, 2019

Lol, this is ridiculously good! :)

← Browse All Courses


[8]ページ先頭

©2009-2025 Movatter.jp