F-strings In Python: Everything You Need To Know

ArjanCodes September 9, 2022
Video Thumbnail

About

No channel description available.

Video Description

👷 Review code better and faster with my 3-Factor Framework: https://arjan.codes/diagnosis. Python's F-strings are incredibly powerful. Knowing how to use them and taking advantage of their formatting options can significantly improve your ability to write logging messages and display information in an understandable manner. In this video, I'll take a deep dive into F-strings and demonstrate some of their uses. ➡️ Pendulum package: https://pendulum.eustace.io 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses/ 🔖 Chapters: 0:00 Intro 1:07 What are F-strings? 1:26 Formatting numbers 5:27 Padding and alignment 8:58 (Data)classes, Str and Repr 13:01 Date and time formatting 16:11 Dealing with special characters 19:01 Printing variables for debugging purposes 20:09 Multiline strings & comments 21:20 F-strings performance 22:34 Advantages of Python f-strings #arjancodes #softwaredesign #python