title: Spell check program in python
body: <blockquote>
    <p>Exercise problem: "given a word list and a text file, spell check the
    contents of the text file and print all (unique) words which aren't
    found in the word list."</p>
  </blockquote>
  
  <p>I didn't get solutions to the problem so can somebody tell me how I went and what the correct answer should be?:</p>
  
  <p>As a disclaimer none of this parses in my python console...</p>
  
  <p>My attempt:</p>
  
  <hr>
  
  <pre><code>a=list[....,.....,....,whatever goes here,...]
  
  data = open(C:\Documents and Settings\bhaa\Desktop\blablabla.txt).read()          
  
  #I'm aware that something is wrong here since I get an error when I use it.....when I just write blablabla.txt it says that it can't find the thing. Is this function only gonna work if I'm working off the online IVLE program where all those files are automatically linked to the console or how would I do things from python without logging into the online IVLE?
  
      for words in data:
  
          for words not in a
  
              print words
  
  wrong = words not in a
  
  right = words in a
  
  print="wrong spelling:" + "properly splled words:" + right
  </code></pre>
  
  <hr>
  
  <p>oh yeh...I'm very sure I've indented everything correctly but I don't know how to format my question here so that it doesn't come out as a block like it has. sorry.</p>
  
  <p>What do you think?</p>