title: Understanding the use of any() and all() in numpy arrays
body: <p>What's the difference between the following:</p>
  
  <pre><code>a = np.array([2,3,4])
  b = np.array([2,7,8])
  
  if a.any() == b.all():
     print('yes')
  </code></pre>
  
  <p>and</p>
  
  <pre><code>a = np.array([2,3,4])
  b = np.array([2,7,8])
  
  if a.any() == b.any():
     print('yes')
  </code></pre>
  
  <p>In both situations, <code>'yes'</code> is printed. </p>