title: Using a dictionary to correct spelling
body: <p>I need to write a function that takes a string argument and returns a string with the corrected spelling according to this dictionary:</p>
  
  <p>For example:</p>
  
  <pre><code>"I ate teh whole thing lol"
  </code></pre>
  
  <p>comes out to be: </p>
  
  <pre><code>'I ate the whole thing haha' 
  </code></pre>
  
  <p>I've done this so far but am lost on what to do:</p>
  
  <pre><code>def respell(string):
      respellings = {
          "teh":"the",
          "relevent":"relevant",
          "lite": "light",
          "lol":"haha" }
      respellingslist = reslepllings.split()
  </code></pre>