Q:

What will be the output of the following code?

0

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( ))

  1. 35
  2. 36
  3. 25
  4. 26

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

D. 26

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now