Code:
import numpy as np
import math as m
a=np.array([[1,6,2],[4,5,0],[3,7,8]])
b=np.array([[4,1],[2,5]])
print(a*a*b,'\n')
Error:
Operands could not be broadcast together with shapes (3,3) (2,2)
How can I solve this problem, plus I'm new in python.
Any suggestion.