trying to create a dictionary in python, using variables as a value

Terry Reedy tjreedy at udel.edu
Mon Nov 20 04:05:50 EST 2006


"ronrsr" <ronrsr at gmail.com> wrote in message 
news:1164008459.159792.48600 at k70g2000cwa.googlegroups.com...
> but I keep getting syntax errors on this one -
>
>
>
> adict = {'zid': result[0][0], 'keywords': result{0][1],

The interpreter puts a ^ under the char where it sees a problem.
Cut and paste above into IDLE shell and it will highlight the problem.
Or just read carefully again ;-)


Terry Jan Reedy






More information about the Python-list mailing list