Create two numpy arrays and add the elements of both the arrays and store the result in sumArray.
import numpy as np array1 = np.array([3, 14, 15, 92]) array2 = np.array([2, 18, 28, 18]) sumArray = array1 + array2 print('sumArray =', sumArray)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment