NumPy - Broadcasting
Consider the code:
What error will occur and why?
import numpy as np x = np.ones((2,3)) y = np.ones((3,2)) z = x + y
What error will occur and why?
import numpy as np x = np.ones((2,3)) y = np.ones((3,2)) z = x + y
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions