Creating a NumPy Array - Question 5

Last Updated :
Discuss
Comments

What will be the output of this code?

Python
import numpy as np
arr = np.array([[1, 2], [3, 4]])
print(arr.shape)


(2, 2)

(1, 4)

(4, )

(2, 1)

Tags:
Share your thoughts in the comments