F-strings In Python: Everything You Need To Know
About
No channel description available.
Latest Posts
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
Python Programming Must-Haves
AI-recommended products based on this video

Freenove Ultimate Starter Kit for BBC micro bit (V2 Included), 316-Page Detailed Tutorial, 225 Items, 44 Projects, Blocks and Python Code




















