NumPy > Arrays broadcasting

Name
Code
Output
array1 = numpy.random.randint(5, size=(2, 3))
print ("array1 \n",array1)
array2 = numpy.random.randint(5, size=(1, 3))
print ("array2 \n",array2)
result = array1 + array2
print ("broadcasted sum result \n",result)
array1 
 [[1 2 1]
 [1 2 2]]
array2 
 [[4 0 3]]
broadcasted sum result 
 [[5 2 4]
 [5 2 5]]