Given a NumPy array Arr = np.array([[1, 2, 3], [4, 5, 6]]) What will be the…

2026

Given a NumPy array
Arr = np.array([[1, 2, 3], [4, 5, 6]])
What will be the output of Arr.shape ?

Answer: C. (2, 3)

  1. A.

    (6,)

  2. B.

    (3, 2)

  3. C.

    (2, 3)

  4. D.

    (1, 6)

Attempted by 256 students.

Show answer & explanation

Correct answer: C

Explore the full course: Rssb Basic Computer Instructor

Loading lesson…