Learn Python - String Formatting

Publié le: 01 janvier 1970
sur la chaîne: Tech Programmer
34
0

While working with Python, you may need to format string and numbers in different ways. We already saw f-string examples in earlier videos. We could simply concatenate string using plus symbol but that looks little bit clumsy.

This video shows three ways to format strings. These are:

1. printf style formatting
2 string format method
3. String interpolation using f-strings

With Python 3.6, we have string interpolation using f-strings which is the recommended and most elegant method for formatting strings. Learn more about all these in this video.

#Python #LearnProgramming

Printf style formatting: https://docs.python.org/3/library/std...

If you like our content, click on SUBSCRIBE button and click on Bell icon to receive latest and greatest updates of my video lessons.

Follow us on Facebook, Twitter, Instagram

Facebook Link:   / techprogrammer1  
Twitter Link:   / techprogrammer1  
Tumblr Blog: https://www.tumblr.com/blog/techprogr...


Sur cette page du site, vous pouvez voir la vidéo en ligne Learn Python - String Formatting durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Tech Programmer 01 janvier 1970, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 34 fois et il a aimé 0 téléspectateurs. Bon visionnage!