NumPy - Array Operations
What will be the output of this code?
import numpy as np x = np.array([3, 6, 9]) y = np.array([2, 4, 8]) z = x - y print(z)
import numpy as np x = np.array([3, 6, 9]) y = np.array([2, 4, 8]) z = x - y print(z)
x is subtracted by the corresponding element in y.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions