Python element-wise tuple operations like sum

import operator
tuple(map(operator.add, a, b))

Leave a Comment