title: How to remove list elements given set of indexes?
body: <p>Is there an efficient way to solve the following problem:</p>
  
  <pre><code>lst = [1,2,3,4,5]
  indexes_to_remove = [0,2,4]
  
  #result
  lst = [2,4]
  </code></pre>
  
  <p>My solution</p>
  
  <pre><code>lst = [1,2,3,4,5]
  indexes_to_remove = [0,2,4]
  
  x = -1
  for i in range(len(indexes_to_remove)):
      x+=1
      if i!=0:
          indexes_to_remove[i] = indexes_to_remove[i] - x # because indexes will shift
      lst.remove(lst[indexes_to_remove[i]])
  </code></pre>