Here is a trick to do that using create dictionary.

>>> l1=['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'] 
>>> l2=['21', '76', '11', '90', '76', '24', '22', '44']
>>> for i in range(0,len(l1)):
...     d[l1[i]]=l2[i]
... 
>>> d
{'a': '21', 'c': '11', 'b': '76', 'e': '76', 'd': '90', 'g': '22', 'f': '24', 
'h': '44'}
>>> d['a']
'21'
>>>

------------------------
-- 
Regards,
Husen Daudi,
OpenERP=Easier, Addaptable, Affortable, Modular




-------------------- m2f --------------------

--
http://www.openerp.com/forum/viewtopic.php?p=24291#24291

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to