I have such array z: array([1, 0, 1, 0, 0, 0, 1, 0, 0, 1])
z
array([1, 0, 1, 0, 0, 0, 1, 0, 0, 1])
How to find a distances between two successive 1s in this array? (measur
1