NumPy - Broadcasting
What will be the output of this code?
import numpy as np X = np.array([[1], [2], [3]]) Y = np.array([10, 20, 30]) Z = X + Y print(Z)
import numpy as np X = np.array([[1], [2], [3]]) Y = np.array([10, 20, 30]) Z = X + Y print(Z)
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions