I want to ask whats the actually use of %s, %d, %r, I mean I know the usage of these 3 strings characters.. i.e.
%s - it is used for string presentation
string = "Hi I'm Pradeep, and I'm learning %s." % "python"
Hi I'm Pradeep, and I'm learning python.
%d - it is used to display numbers
numb = "There are %d types of people." % 10
There are 10 types of people.
%r - it is used as string representation
micheal_jackson = "he is a great dancer."
string = "I said %r" %micheal_jackson
I said he is a great dancer.
As far as I know how to use these string characters but my question is I don't when to use these string characters in real life coding....
Hope you can understand what I'm trying to ask??