⁉️ Interview question
What does the following NumPy code return?
<details><summary>Click to reveal</summary>Answer: [[ 8 20] [17 47]]</details>
#️⃣ tags: #numpy #python #interviewquestion #arrayoperations #matrixmultiplication #dotproduct
By: @DataScienceQ 🚀
What does the following NumPy code return?
import numpy as np
a = np.arange(6).reshape(2, 3)
b = np.array([[1, 2, 3], [4, 5, 6]])
result = np.dot(a, b.T)
print(result)
#️⃣ tags: #numpy #python #interviewquestion #arrayoperations #matrixmultiplication #dotproduct
By: @DataScienceQ 🚀