easy5 pts · first answer countsnumpybroadcasting
Broadcasting a column and a row
What does this code print?
import numpy as np a = np.ones((3, 1)) b = np.ones((1, 4)) print((a + b).shape)
Discussion 0
Join free to post in the discussion.
What does this code print?
import numpy as np a = np.ones((3, 1)) b = np.ones((1, 4)) print((a + b).shape)
Join free to post in the discussion.