title: getting the index while interating a list
body: <p>while i'm interating a list, how can i get the id of the current item to reference it to list methods?</p>
  
  <pre><code>xl = [1,2,3] # initial list
  yl = [3,2]   # list used to remove items from initial list
  
  for x in xl[:]:
      for y in yl:
          if x == y:
              xl.pop(x) # problem
              break
          print x, y
  print xl
  </code></pre>
  
  <p>in the simple example, i want to loop through the 2 lists, and when i find a similar item, remove it from list 1.</p>
  
  <p>What should i use instead of X in the line commented with "#problem"?</p>
  
  <p>PS: Note it's a copy i'm iterating from.</p>