title: While loop to get even numbers in a list
body: <p>1) What am I doing wrong. I want to get the even numbers in the list. </p>
  
  <pre><code>L = [5,10, 15, 20, 25]
  i = 0
  while L[i] % 2 == 0 and i &lt; len(L):
      print L[i]
      i += 1
  </code></pre>
  
  <p>This doesn't give me anything</p>
  
  <p>2) If i run it with <code>L = [10, 15, 20, 25]</code> it works but only returns <code>10</code>. Why is it not returning <code>20</code> as well does while loop stops after first match. </p>