Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 42)
42.
What does the NumPy function numpy.zeros((3, 4)) do?
Creates a 3x4 array with all elements initialized to zero.
Generates an array with random values.
Reshapes an existing array to have dimensions 3x4.
Computes the square root of each element in the array.
Answer: Option
Explanation:
The numpy.zeros() function creates a 3x4 array with all elements initialized to zero.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.