title: How does this input work with the Python 'any' function?
body: <p>In the python docs page for <a href="http://docs.python.org/2/library/functions.html#any"><code>any</code></a>, the equivalent code for the <code>any()</code> function is given as:</p>
  
  <pre><code>def any(iterable):
      for element in iterable:
          if element:
              return True
      return False
  </code></pre>
  
  <p>How does this function know what element I wanna test if call it in this form?</p>
  
  <pre><code>any(x &gt; 0 for x in list)
  </code></pre>
  
  <p>From the function definition, all I can see is that I'm passing an iterable object. How does the <code>for</code> loop know I am looking for something <code>&gt; 0</code>?</p>