title: list index python and list comprehension
body: <pre><code>list1 = [48, 33, 46, 46, 87, 11, 50, 99, 65, 87]
  list2 = [48, 33, 46]
  duplicates = [list1.pop(list1.index(i)) for i in list1 if i in list2]
  </code></pre>
  
  <p>So if I try to print out duplicates, it will have[48,46]
  this is a homework and the question is what
  the code was expected to do and explain how the code needs to be changed to obtain the expected result.</p>