trying to create a dictionary in python, using variables as a value
Paul McGuire
ptmcg at austin.rr._bogus_.com
Mon Nov 20 05:26:02 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],
> 'quotations':result[0][2],'citations':result[0]{3]};
>
Probably because it has some syntax errors in it. Look carefully at your
"[" characters, you have typed some of them as "{".
-- Paul
More information about the Python-list
mailing list