title: How can I pop out the contents of a sublist in python?
body: <p>I have a question about python programming in python2.7. </p>
  
  <p>If I have a list A and I want to pop the last element D2, how can I do that?
  When I just type A.pop() it pops the entire sub-list rather than D2.</p>
  
  <pre><code>A=[['HQ', 'H6', 'SJ', 'H0'],['H7', 'HK','DQ', 'DK'],
    ['D4', 'SK', 'H8', 'CK'],  ['CQ', 'S3', 'HJ', 'C9'], 
    ['S6', 'S8', 'S1', 'D2']]
  </code></pre>