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 > formatting, but this just seems so bizarre. I can tell that the key > is being replaced by it's value in the string, but I don't know how > that is being done. > > TIA
http://docs.python.org/lib/typesseq-strings.html The '%' invokes the formatter, the 's' specifies string type. -- http://mail.python.org/mailman/listinfo/python-list