Google News
logo
NumPy - Quiz(MCQ)
Which of the following returns an array of ones with the same shape and type as a given array?
A)
one_alike
B)
ones_like
C)
all_like
D)
None of the above

Correct Answer : Option (B) :   ones_like


Explanation : The optional output arguments of the function can be used to help you save memory for large calculations.

Advertisement