Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 12)
12.
How do you perform element-wise addition of two NumPy arrays, arr1 and arr2?
arr1.add(arr2)
np.add(arr1, arr2)
arr1 + arr2
np.sum(arr1, arr2)
Answer: Option
Explanation:
The + operator can be used for element-wise addition of two NumPy arrays.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.