DLS C1 W2 Exercice 5

You should understand that a dot product you selected is a matrix operation. The result should be a matrix.
Understanding the difference between a scalar and a vector/array is quite important. There will be some exercises to check the type of variable. If you mix up, then you will fail all.
You will use several transformation operations like squeeze, cast, and others to get required type.

If you are new to Python, this may be a good starting point. This is for MLS learners, but should be accessible by anyone.