title: Python - Remove list(s) from list of lists (Similar functionality to .pop() )
body: <pre><code>a=[[1,2,3],[4,5,6],[7,8,9]]
  </code></pre>
  
  <p>.pop() has the capacity to not only remove an element of a list but also return that element.</p>
  
  <p>I am looking for a similar function that can remove and return a whole list that could exist in the middle of another list.</p>
  
  <p>E.g is there a function that will remove <code>[4,5,6]</code> from the above list <code>a</code>, and return it.</p>
  
  <p>The reason for the question is that I'm sorting a list through <code>itemgetter</code> and there's a collision between the headings row (string) and the rest of the data (<code>datetime</code>).  As such, I'm looking to effectively pop the list which represents the headings, do a sort, then insert it back in.</p>