What will be the output of the following code?
import numpy as np n_array = np.array([1, 0, 2, 0, 3, 0, 0, 5, 6, 7, 5, 0, 8]) res = np.where(n_array == 0)[0] print(res.sum( ))
Answer:
D. 26
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Answer:
D. 26
need an explanation for this answer? contact us directly to get an explanation for this answer