title: First Python list index greater than x?
body: <p>What would be the most Pythonic way to find the first index in a list that is greater than x?</p>
  
  <p>For example, with</p>
  
  <pre><code>list = [0.5, 0.3, 0.9, 0.8]
  </code></pre>
  
  <p>The function</p>
  
  <pre><code>f(list, 0.7)
  </code></pre>
  
  <p>would return</p>
  
  <pre><code>2.
  </code></pre>