Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 63)
63.
How can you create a NumPy array filled with zeros of shape (4, 4)?
np.zeros((4, 4))
np.ones((4, 4))
np.empty((4, 4))
np.full((4, 4), 0)
Answer: Option
Explanation:
The np.zeros() function creates an array filled with zeros of the specified shape.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.