advanced code snippet search
iamok on 04/28/10
summed = [sum(pair) for pair in zip(listA, listB)] or from operator import add summed = map(add,listA,listB) or summed = map(sum,zip(listA,listB))
Report this snippet
You need to login to post a comment.