dictionary

asit lipun4u at gmail.com
Fri Oct 24 08:02:39 EDT 2008


On Oct 24, 3:06 pm, Tim Chase <python.l... at tim.thechases.com> wrote:
> >>>> ["%s="%s" % (k,v) for k,v in d.items()]
> >   File "<stdin>", line 1
> >     ["%s="%s" % (k,v) for k,v in d.items()]
> >                                           ^
> > SyntaxError: EOL while scanning single-quoted string
>
> You have three quotation marks...  you want
>
>    "%s=%s"
>
> not
>
>    "%s="%s"
>
> -tkc

Thanx



More information about the Python-list mailing list