title: Compare Nested List Items in a Pair in Python
body: <p>I have a nested list like this :</p>
  
  <pre><code>[['Asan', '20180418', 'A', '17935.00'],
   ['Asan', '20180417', 'B', '17948.00'],
   ['Asan', '20180416', 'C', '17979.00'],
   ['Asan', '20180416', 'D', '17816.00'],
   .
   .
   .
   .
   ['Asan', '20180415', 'N', '18027.00']]
  </code></pre>
  
  <p>I need to do some calculations for the 3rd element in every list with the one before it, an example :</p>
  
  <pre><code>if (A/B) &gt; 0.05: ....
  if (B/C) &gt; 0.05: ....
  if (C/D) &gt; 0.05: ....
  .
  .
  if (N-1/N) == 1: ....
  </code></pre>
  
  <p>and if the condition is not met, I pop that list.</p>
  
  <p>How can I approach this and what is the most pythonic and fastest way to do it.</p>
  
  <p>EDIT :
  let me clarify :
  A and B and so on are FLOATS, I just name them A, B,... for better understanding.
  the if statements are supposed to find if the A is how much greater than the previous float B.</p>