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

Paul McGuire ptmcg at
Mon Nov 20 11:26:02 CET 2006

"ronrsr" <ronrsr at> wrote in message 
news:1164008459.159792.48600 at
> 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