title: List Manipulation in Python with pop()
body: <p>In short, I need to remove multiple items from a list according to their indexes. However, I can't use pop because it shifts the indexes (without some clumsy compensating system). Is there a way to remove multiple items simultaneously?</p>
  
  <p>I have an algorithm that goes through a list, and if the conditions are right removes that item via the pop method. A problem arises seeing as this is all done in a loop. Once pop is done the list is shortened by one, displacing all the values by one. So the loop will go out of range. Is it possible to remove multiple items simultaneously, or another solution? </p>
  
  <p>An example of my problem:</p>
  
  <pre><code>L = ['a', 'b', 'c', 'd']
  
  for i in range(len(L)):
      print L
      if L[i] == 'a' or L[i] == 'c':
          L.pop(i)
  </code></pre>