import numpy as np A = np.array([[1,2],[3,4]]) B = np.array([[5,6],[7,8]]) print(A@B)
Here is what the above code is Doing:
1. We create two matrices, A and B.
2. We use the @ symbol to multiply them.
3. We print the result.
The result is a new matrix that contains the product of the two matrices.
In this case, the product is:
[[19 22]
[43 50]]