/ Published in: Python

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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))
Comments
