Python | Numpy Quiz | Question 10

Last Updated :
Discuss
Comments

What is the correct way to calculate the dot product of two NumPy arrays a and b?

dot_product = a x b

dot_product = np.dot(a, b)

dot_product = a.dot(b)

dot_product = np.cross(a, b)

Share your thoughts in the comments