Python Tutorials - '%s %d' % ('string_formatting_in_Python', 3)

preview_player
Показать описание
This video is the first of a series of string formatting in Python, specifically Python 3.
We will start with C-style string formatting, which is the most difficult for new_comers.
%s, .3f, %d are just some of the operators you will encounter when using
this type of formatting. We will thoroughly go through each operator in this video.

C style string formatting Python

----------------------------------------------------------------------------------------------------------

Just created a facebook page:

Here is my reddit account for sharing links:

Here is my twitter account for programming:

Here is my github account:

Рекомендации по теме
Комментарии
Автор

Part two has been released so check it out here:

PyMoondra
Автор

sir if you are reading this comment, i wanna say thank explained this very well

studyaccount
Автор

It was a perfect explanation. Looking forward to seeing the next part. Thank you very much indeed

mostafaahmadi
Автор

Thank you very very much i have found only you who explain so nicely about module operator once again thank you.

mahendrabaruah
Автор

Very well done ! I'm looking forward for the next video's about string formatting !

JoelCourtheyn
Автор

i really needed a good explanation for the width type and you didn't disappoint
best explaination

sksaadnoob
Автор

:-) Guido didn't seem to bother to "invent a wheel" and just borrowed the specification from the fprintf() function of the standard C library :-) This is very positive, I think.

alex_
Автор

Thank you alot for this video! Very clear and helpful for me! :)

tymothylim
Автор

This is very very good. I once tried documenting all styles myself. But gave up. But here you are with a very comprehensive video. Thank you.


I saw you stopped uploads for a long time but have resumed again recently. Keep it up. You'll soon reach the ranks of sentdex and corey.

DrAbhinavKumar
Автор

this was the most difficult to memorize information about python up to now. I was never a fan of formatting, regardless of the application. But c formatting just made me feel today very dumb.

nononnomonohjghdgdshrsrhsjgd
Автор

So modulo s (%s) substitutes the value of the variable by instead of writing the variable's value u write the %s symbol. is this correct? Also why does %d have to represent an integer? I am a beginner self-teaching myself python. any free (with no cost or fees) python courses would be really helpful for me. I am really interested in learning this. Btw thanks for this awesome video i'm sure it will help me :)

ashleyr
Автор

is zfill an alternative to zero padding here? Which one's faster?

muralidhar
Автор

print("14.5E"% (322.12499636)) printing error (not all arguments gets converted in string formatting).May i know the reason?

darshinis
Автор

Python becomes a turtle head trying to eat a tornado

Dragon-Slayr