[Baypiggies] processing multiple lists in step

Rich Pixley rich.pixley at palm.com
Thu Sep 10 18:19:50 CEST 2009


Jeff Enderwick wrote:
> I like using list-comps in Python. Is there a nice way to process more
> than one list concurrently in this style? By this, I mean that the 1st
> iteration would act on L1[0] and L2[0], the 2nd iteration would act on
> L1[1] and L2[1], and so on. Sorry if the soln is obvious - I am tired
munge(L1[i], L2[i]) for i in range(len(L1))

--rich


More information about the Baypiggies mailing list