title: Convert a list of str and lists to dict
body: <p>In Python, how do I convert a list that contains strings and lists that have two values into a dictionary such that the key is the string and the value is a list of lists such that the first value of each list is the key.</p>
  
  <p>For example, the current list I have is:</p>
  
  <pre><code>['A', ['A', 1], 'B', ['B',1], ['B',2], 'C', ['C', 1], ['C',2], ['C',3]]
  </code></pre>
  
  <p>and I want the dictionary:</p>
  
  <p><code>{'A': [['A', 1]], 'B': [['B',1], ['B',2]], 'C': [['C',1], ['C',2],</code> ['C',3]]}</p>
  
  <p>Thank you. </p>
  
  <p>EDIT: The number of lists that follow a string is arbitrary.</p>