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

Gabriel Genellina gagsl-py at yahoo.com.ar
Tue Nov 21 00:03:41 CET 2006


At Monday 20/11/2006 04:40, ronrsr wrote:

>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]};
>zhtml.print_update_form(adict);

There *are* syntax errors, result{0] should be result[0], and 
result[0]{3] should be result[0][3]


-- 
Gabriel Genellina
Softlab SRL 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar



More information about the Python-list mailing list