title: How to use any() to apply to a particular nested list only?
body: <p>I'm trying to code the movement of points, but I don't want the points to overtake. Each point has an increasing velocity (up until a max value) unless there is another point ahead of it.</p>
  <p>Array a is a series of distances between the points relative to each other which are nested/divided by each point. Array b is a set of velocities (initially starting from rest).</p>
  <p>If the velocity + 1 + any value in the nested distance = 0, then I don't want the velocity to increase. However, when I apply the any function it seems to apply to the whole array, not the particular nested list I want:</p>
  <pre><code>import numpy as np
  a = [[-1, -3], [1, -2], [3, 2]] #relative distances of each point
  b = np.zeros(3) #velocities
  for count, i in enumerate(a):
      if b[count] + 1 + any(a[count]) == 0:
          b[count] == b[count]
      else:
          b[count] += 1
  print(b)
  </code></pre>
  <p>The output is [1. 1. 1.], but I would want [0.,1.,1.]. Am I applying it wrong? Let me know if you need any further clarifications</p>