title: Python: Convert 2D list to dictionary
body: <p>I am trying to convert the following 2D list:</p>
  
  <pre><code>lst = [['A','B'],['C','D']]
  </code></pre>
  
  <p>To a dictionary like:</p>
  
  <pre><code>dict = {['A','B']:0, ['C','D']:1}
  </code></pre>
  
  <p>I have tried answers from other posts like the following:</p>
  
  <pre><code>{k: v for v, k in enumerate(lst)}
  </code></pre>
  
  <p>Which gives me this error:</p>
  
  <pre><code>unhashable type: 'list'
  </code></pre>
  
  <p>Any help is much appreciated. Thanks.</p>