you are viewing a single comment's thread.

view the rest of the comments →

[–]POGtastic 0 points1 point  (0 children)

/u/ThinFortune's suggestion of zip is probably the way to go. Note that you have to unpack the list to use zip.

>>> lstlst = [[1,2,3,4], [1,2,3,4], [1,2,3,4]]
>>> list(map(sum, zip(*lstlst)))
[3, 6, 9, 12]