title: List manipulation to extract values greater than current and remaining index values
body: <p>I have following list:</p>
  
  <p><code>elev = [0.0, 632.8, 629.9, 626.5, 623.7, 620.7, 620.7, 607.4, 603.2, 602.0, 606.6, 613.2, 608.4, 599.7, 583.6]</code></p>
  
  <p>Ideally it should be in descending order but <code>602.0</code> is smaller than next 3 values <code>(606.6,613.2,608.4)</code> and I need a count of those values each time this issue arises. I am trying nested for loops to count those values with following:</p>
  
  <pre><code>l = len(et)    
  for i in xrange(1,l-1,1):
      for j in xrange(1,l-1,1):
          if (et[i] &lt; et[j]):
              print et[i]
  </code></pre>
  
  <p>But instead I get all values greater than <code>602.0</code>. How do I restrict loop to only count those 3 values? Appreciate any suggestions.</p>