Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 81)
81.
What does the NumPy function numpy.zeros((2, 3)) return?
2x3 array with all elements initialized to zero.
3x2 array with all elements initialized to zero.
2x2 identity matrix.
3x3 array with all elements initialized to one.
Answer: Option
Explanation:
The numpy.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.