In article <[EMAIL PROTECTED]>,
 Davy <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> I have three lists with the same length. Is there any method to loop
> the three lists without a loop counter?
> 
> Best regards,
> Davy

Davy,

Look at the "zip" function, 

  <http://docs.python.org/lib/built-in-funcs.html>

Look near the bottom of the page.

Example:
  zip([1,2,3], [4,5,6], [7,8,9])
  ==> [(1, 4, 7), (2, 5, 8), (3, 6, 9)]

Cheers,
-M

-- 
Michael J. Fromberger             | Lecturer, Dept. of Computer Science
http://www.dartmouth.edu/~sting/  | Dartmouth College, Hanover, NH, USA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to