Think of it as using a name instead of a position for your "%s".
In addition to what others already said, I thought I'd add an example
of where this is useful.
One place where you don't just want to have a position is when doing
internatiolization.
When translating for example:
"I'm going by %(tr
On Dec 7, 2007 6:31 AM, waltbrad <[EMAIL PROTECTED]> wrote:
> Hello. Been studying Python for about a week now. I did a quick read
> of the tutorial in the manual and I'm reading Programming Python by
> Mark Lutz. I'm still getting used to the Python syntax, but I'm able
> to pretty much follow w
Chris a écrit :
> On Dec 7, 2:31 pm, waltbrad <[EMAIL PROTECTED]> wrote:
>> I understand how D['say'] gets you 5, But I still don't understand
>> the line after the 5.
>>
>> How is the character 's' some special code? And I don't get what is
>> going on with the % character. I'm used to it's use
On Dec 7, 2:31 pm, waltbrad <[EMAIL PROTECTED]> wrote:
>
> I understand how D['say'] gets you 5, But I still don't understand
> the line after the 5.
>
> How is the character 's' some special code? And I don't get what is
> going on with the % character. I'm used to it's use in c-style
> formatt