Question: In python I need to get a ValueError: operands could not be broadcast together with shapes. However it is adding a scalar to matrix in
![In [96]: print(beta) print(v) print (beta+v) 0.5 [[-2 -1 -2 3]] [[-1.5](https://s3.amazonaws.com/si.experts.images/answers/2024/05/664c8f166d143_398664c8f1600d57.jpg)
In [96]: print(beta) print(v) print (beta+v) 0.5 [[-2 -1 -2 3]] [[-1.5 -0.5 -1.5 3.5]]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
