title: Remove Python list element
body: <p>I have two list, </p>
  
  <pre><code>l1 = [1,2,3,4,5,6]
  l2 = [3,2]
  </code></pre>
  
  <p>what i want is to remove the element of list l1 which is in l2, for that i have done something like this,</p>
  
  <pre><code>for x in l1:
      if x in l2:
          l1.remove(x)
  </code></pre>
  
  <p>it gives output like </p>
  
  <pre><code>[1, 3, 4, 5, 6]
  </code></pre>
  
  <p>but the output should be like </p>
  
  <pre><code>[1, 4, 5, 6]
  </code></pre>
  
  <p>can any one shed light on this.</p>