title: Why am I getting an "Unhashable type: 'list' " error?
body: <p>I have this huge list ( <code>mylist</code> ) that contains strings like this:</p>
  
  <pre><code>&gt;&gt;&gt; mylist[0]
  'Akaka D HI -1 -1 1 1 1 -1 -1 1 1 1 1 1 1 1 -1 1 1 1 -1 1 1 1 1 1 -1 1 -1 -1 1 1 1 1 1 1 0 0 1 -1 -1 1 -1 1 -1 1 1 -1'
  </code></pre>
  
  <p>now, I want to take those 0, 1 and -1 and make a list with them, so I can make a list with the name at the first part of the string with the values of the list of 0, 1 and -1... so after some time I come up with this monstrosity</p>
  
  <pre><code>dictionary = {}
  for x in range(len(mylist)-1):
      dictionary.update({mylist[x].split()[0],[]}),[mylist[0].split()[k] for k in range(3,len(mylist[0].split()))]})
  </code></pre>
  
  <p>But when I try that out in the commandline, I get this error:</p>
  
  <pre><code>&gt;&gt;&gt; for x in range(len(mylist)-1):
  ...   dictionary.update({mylist[x].split()[0],[mylist[0].split()[k] for k in range(3,len(mylist[0].split()))]})
  ... 
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 2, in &lt;module&gt;
  TypeError: unhashable type: 'list'
  </code></pre>