title: Python turn text file into dictionary
body: <p>I'm writing a spell checking function and I have a text file that looks like this </p>
  
  <pre><code>teh the
  cta cat
  dgo dog
  dya day
  frmo from
  memeber member
  </code></pre>
  
  <p>The incorrect spelling is on the left (which will be my key) and the correct spelling is on the right (my value).</p>
  
  <pre><code>def spell():
      corrections=open('autoCorrect.txt','r')
      dictCorrect={}
      for line in corrections:
          corrections[0]=[1]
          list(dictCorrect.items())
  </code></pre>
  
  <p>I know what I want my function to do but can't figure out how to execute it. </p>