Python Data Science Jobs & Interviews
20.3K subscribers
187 photos
4 videos
25 files
325 links
Your go-to hub for Python and Data Science—featuring questions, answers, quizzes, and interview tips to sharpen your skills and boost your career in the data-driven world.

Admin: @Hussein_Sheikho
Download Telegram
⁉️ Interview question
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)


<details><summary>Click to reveal</summary>Answer: [[ 8 20] [17 47]]</details>

#️⃣ tags: #numpy #python #interviewquestion #arrayoperations #matrixmultiplication #dotproduct

By: @DataScienceQ 🚀