dictionary

Duncan Booth duncan.booth at invalid.invalid
Fri Oct 24 06:04:32 EDT 2008


asit <lipun4u at gmail.com> wrote:

>  ["%s="%s" % (k,v) for k,v in d.items()]

The first " opens a string, the second " terminates it, the third " opens 
it again, and you don't have a fourth " in your line to close it.

Try using an editor which supports syntax colouring (even Idle does this) 
and the problem will be instantly apparent.

-- 
Duncan Booth http://kupuguy.blogspot.com



More information about the Python-list mailing list