zip list, variables

Steven D'Aprano steve+comp.lang.python at pearwood.info
Wed Nov 20 20:03:39 EST 2013


On Wed, 20 Nov 2013 12:05:38 -0800, flebber wrote:

> Thank you for the replies.
> 
> Looking at the replies I am wondering which solution is more scalable.
> At the moment it is only 2 nested lists but what about 5, 10, 20 or
> more?
>
> Should I start looking into numpy to handle this or will list
> comprehension
>   >>> [ [ x + y for x, y in zip(x,y) ] for x, y in zip(a,b) ]
> Be sufficient ?

Be sufficient for what? You've deleted all context from your post, so I 
have no clue what you're talking about.



-- 
Steven



More information about the Python-list mailing list