F-strings In Python: Everything You Need To Know

Veröffentlicht am: 09 September 2022
auf dem Kanal: ArjanCodes
52,754
2.2k

👷 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


Auf dieser Seite können Sie das Online-Video F-strings In Python: Everything You Need To Know mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer ArjanCodes 09 September 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 52,754 Mal angesehen und es wurde von 2.2 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!