I am trying to perform matrix multiplication in Python using NumPy with the following code:
import numpy as np
A = np.array([[1, 2], [3, 4]])
B = np.array([1, 2, 3])
C = np.dot(A, B)
print("Result", C)
However, I get a ValueError indicating that shapes (2,2) and (3,) are not aligned. What is the problem with my code and how can I fix it so that matrix multiplication works correctly?