title: Python "for in" loop to print the last item in the list
body: <p>Lately I learned about lists and for loops, as well as the command <code>.pop()</code> that indicates and removes the last item in a list.</p>
  
  <p>So I tried to write a code to remove the last items in a list one by one, until it remains with only one item.</p>
  
  <p>The code is:</p>
  
  <pre><code>list_A = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']
  
  for i in list_A:
      print(list_A.pop())
      if 'c' not in list_A:
          break
  
  print("job done.")
  </code></pre>
  
  <p>The output of python 3.6 gives me this:</p>
  
  <pre><code>/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6
  j
  i
  h
  g
  f
  job done.
  </code></pre>
  
  <p>As you can see, it actually worked, but for a half of it?</p>
  
  <p>I was expecting:</p>
  
  <pre><code>j
  i
  h
  g
  f
  e
  d
  c
  job done
  </code></pre>
  
  <p>I mean, I will be more comfortable if it returns some error, that means the code is not right. But why did it work, but not a full way through?</p>