title: Python Text Document Translation Comparison
body: <p>Fairly simple question. I'm trying to create a "translation comparison" program that reads and compares two documents and then returns every word that isn't in the other document. This is for a beginner class, so I'm trying to avoid using obscure internal methods, even if that means less efficient code. This is what I have so far...</p>
  
  <pre><code>def translation_comparison():
     import re
     file1 = open("Desktop/file1.txt","r")
     file2 = open("Desktop/file2.txt","r")
     text1 = file1.read()
     text2 = file2.read()
     text1 = re.findall(r'\w+',text1)
     text2 = re.findall(r'\w+',text2)
     for item in text2:
         if item not in text1:
             return item  
  </code></pre>