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:
👷 Join the FREE Code Diagnosis Workshop to help you review code more effectively using my 3-Factor Diagnosis Framework:
🛒 GEAR & RECOMMENDED BOOKS:
🎓 Sign up to Brilliant now and get 20% off the annual subscription:
👍 If you enjoyed this content, give this video a like. If you want to watch more of my upcoming videos, consider subscribing to my channel!
💬 Discord:
🐦Twitter:
🌍LinkedIn:
🕵Facebook:
📱Instagram:
👀 Code reviewers:
- Yoriz
- Ryan Laursen
- James Dooley
- Dale Hagglund
🎥 Video edited by Mark Bacskai:
🔖 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
DISCLAIMER - The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!
10 views
4
1
1 month ago 00:04:23 2
Tobias Rauscher - Skylit Part II (Home Playthrough)
1 month ago 03:05:33 1
Bach - Classical Music for Relaxation
1 month ago 00:10:47 1
The coolest LUTE I’ve ever seen!
1 month ago 07:16:54 1
Bach: A Guitar Collection
1 month ago 00:05:13 1
Fantasy - Leonid & Friends (EW&F cover)
1 month ago 00:27:08 1
Будь проклята война и всё её отродье!
1 month ago 00:04:55 1
“SON OF A WITCH” | DARK SWAMP BLUES on the Dobro Duolian Resonator Guitar
1 month ago 01:51:00 1
Classical Music for When You’re on a Deadline
1 month ago 01:49:03 1
The Best Relaxing Classical Music Ever By Bach - Relaxation Meditation Focus Reading
1 month ago 00:11:19 1
Michael Nyman Memorial for Large Ensemble
1 month ago 02:51:10 1
The Best of Vivaldi
2 months ago 01:32:20 3
Ben Gold DESTROYS Peach 31st Birthday Set in London! (September 2024)
2 months ago 00:05:11 1
Boogie Wonderland - Leonid & Friends (EW&F cover)
2 months ago 01:37:17 1
A. Vivaldi: L’Estro Armonico, Op. 3 [Accademia Bizantina]
2 months ago 00:03:39 206
Alexandra Whittingham plays Forgotten by Madame Sidney Pratten on a 1938 Julian Gomez Ramirez
2 months ago 00:04:37 1
Myth | Big Bike Dream Tricks In BC | Dillon Butcher
2 months ago 00:00:00 1
Fauré’s Chamber Music with Steven Isserlis and friends | Part 4 - Live from Wigmore Hall
2 months ago 00:04:58 1
Singham Again | Official Trailer | A Rohit Shetty Cop Universe | In Cinemas 1st Nov
2 months ago 02:59:44 1
Best of Tchaikovsky - Classical Music Gems
2 months ago 00:03:03 1
J.S. BACH, CONCERTO NO.5 IN F-MINOR FOR HARPSICHORD AND STRINGS (BWV 1056) - LARGO, MARIA JOÃO PIRES
2 months ago 02:28:09 1
Belcea Quartet I 17th Chopin and his Europe International Music Festival
2 months ago 00:09:27 2
Vivaldi Four Seasons: Winter (L’Inverno), original version. Freivogel & Voices of Music RV 297 4K
2 months ago 01:41:32 1
모차르트 베스트 100분 연속 (무광고) 집중력을 높이는 음악🍎Mozart BEST 100 minute Relaxation Music 집중력을 높여주는 클래식 莫扎 モーツアルト名曲