Guest User

Untitled

a guest
Jul 15th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. arr = np.array([0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0])
  2. print (arr.nonzero()[0].size + 1)
  3. # 5
Add Comment
Please, Sign In to add comment