zip list, variables

flebber flebber.crue at gmail.com
Wed Nov 20 15:05:38 EST 2013


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 ?

Thanks

Sayth



More information about the Python-list mailing list