tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code23:29

F-strings In Python: Everything You Need To Know

ArjanCodes ↗

From the creator

👷 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

Published 2022-09-09 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code