trying to create a dictionary in python, using variables as a value
Gabriel Genellina
gagsl-py at yahoo.com.ar
Mon Nov 20 18:03:41 EST 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