title: Searching list of lists
body: <p>I have a list of data like this</p>
  
  <pre><code>data = [['A',11],['A',22],['B',14],['C',23],['C',31],['B',12]]
  </code></pre>
  
  <p>I put the unique items in an other list like this:</p>
  
  <pre><code>search=[]
  for item in data:
      if search.count(item[0]) == 0:
          search.append(item[0])
  
  # search contains ['A', 'B', 'C']
  </code></pre>
  
  <p>How do I search the list <code>data</code> with the list <code>search</code> and produce output like?</p>
  
  <pre><code>['A', [11,22]]
  ['B', [14,12]]
  ['C', [23,31]]
  </code></pre>