title: Reading text file into dictionary
body: <p>my text file has a format:</p>
  
  <pre><code>car,coche,auto
  chair,silla,stuhl,sella
  </code></pre>
  
  <p>The first element is the english word. I want to create a dictionary that does the following and returns dictionary.</p>
  
  <pre><code>dict =        {'coche'  : 'car',
                 'auto'   : 'car',
                 'stilla' : 'chair',
                 'stuhl'  : 'chair',
                 'sella'  : 'chair' }
  </code></pre>
  
  <p>I cannot use any built in function just loops and basic functions. </p>
  
  <p>I know I want to:</p>
  
  <ul>
  <li>split the elements of each line</li>
  <li>set the first item as the key</li>
  <li>assign the second item as a value</li>
  <li>assign the following values to the same key </li>
  </ul>
  
  <pre><code>    open_file = open(words_file_name, 'r')
      conversions = {}
      for line in open_file:
          piece = open_file.split(',')
          key = piece[0]
          conversions[key] = 0 
          if piece not in conversions:
              conversions[piece] = 1
          conversions[piece] += 1
      for key, value in conversions:
          return conversions
  </code></pre>
  
  <p>I have continuously gotten key errors, etc.</p>