"CSUIDL PROGRAMMEr" <[EMAIL PROTECTED]>:

> folks I have two lists
>
>  i am trying to loop thorough them simultenously.
>
> Is there any efficient doing this

Try the built-in function zip.

>>> zip(['a', 'b', 'c'], [1, 2, 3])
[('a', 1), ('b', 2), ('c', 3)]

-- 
Björn Lindström <[EMAIL PROTECTED]>
Student of computational linguistics, Uppsala University, Sweden
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to