title: using dictionaries and linked list python
body: <p>I have a dictionary their key is a word an I want in the elements save a linked list, something like this.</p>
  
  <p>Dictionary</p>
  
  <ul>
  <li>key    element </li>
  <li>hi     linkedlist1</li>
  <li>hello  linkedlist2</li>
  </ul>
  
  <p>i already make it with arrays</p>
  
  <pre><code>dictionari={}
  for textoactual in texto:
      archi = open(textoactual,'r')
      lines = archi.readlines()
      for row in lines:
          for word in row.split(' '):
              if word in dictionari:
                  aux = dictionari[word] 
                  aux_txt = textoactual.replace('.txt','')
                  if not(aux_txt in aux): 
                      aux.append(aux_txt)
                      dictionari[word]=aux
              else:
                  aux_txt = textoactual.replace('.txt','')
                  dictionari[word] = makelist(aux_txt)
  </code></pre>