NumPy - Broadcasting
What will happen when running this code?
import numpy as np x = np.array([1, 2, 3]) y = np.array([[1], [2]]) print(x + y)
import numpy as np x = np.array([1, 2, 3]) y = np.array([[1], [2]]) print(x + y)
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions