title: How not to remove items from a list, which is being indexed to remove items from another list?
body: <p>I'm trying to remove some items from a list, and the required indexes are in another list.</p>
  
  <p>I've tried list.pop(), but it also removes items from the parent list, just like list.remove()</p>
  
  <pre><code>sequence = [3, 6, 5, 8, 10, 20, 15]
  sortS = sorted(sequence)
  seq = sequence
  for i in range(len(sequence)):
      seq.remove(sequence[i])
      sortS.remove(sequence[i])
  
  
  print(sequence)
  &gt;&gt;&gt;[]
  </code></pre>