How to Use F-Strings to Format Strings in Python | Python Tutorial Ep9

Publié le: 07 juin 2021
sur la chaîne: Datakademy
28
3

In this video, we learn how to use f-strings in Python. We take a look at string formatting prior to Python 3.6, and the drawbacks of it. We also look at why f-strings are powerful and versatile.

You can call functions, do mathematical operations, and more in f-strings!

Subscribe to 💎Datakademy to learn something new everyday! 📲

0:00 - What do f-strings do?
0:12 - Why f-strings are better than .format()
0:59 - Comparison of .format() and f-strings
1:30 - How to use an f-string


Sur cette page du site, vous pouvez voir la vidéo en ligne How to Use F-Strings to Format Strings in Python | Python Tutorial Ep9 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Datakademy 07 juin 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 28 fois et il a aimé 3 téléspectateurs. Bon visionnage!