On Aug 10, 11:18�pm, ssecorp <[EMAIL PROTECTED]> wrote:
> Is there a syntax for looping through 2 iterables at the same time?
>
> for x in y:
> � � for a in b:
>
> is not what I want.
>
> I want:
> for x in y and for a in b:

Something like this?

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

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to