F-strings In Python: Everything You Need To Know

ArjanCodes September 9, 2022
Video Thumbnail
ArjanCodes Logo

ArjanCodes

View Channel

About

On this channel, I post videos about programming and software design to help you take your coding skills to the next level. I'm an entrepreneur and a university lecturer in computer science, with more than 20 years of experience in software development and design. If you're a software developer and you want to improve your development skills, and learn more about programming in general, make sure to subscribe for helpful videos. I post a video here every Friday. If you have any suggestion for a topic you'd like me to cover, just leave a comment on any of my videos and I'll take it under consideration. Thanks for watching!

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

You May Also Like