SyntaxFix
Write A Post
Hire A Developer
Questions
Here is another handy solution if you are already using numpy. It is compact and the addition operation can be replaced by any numpy expression.
numpy
import numpy as np tuple(np.array(a) + b)