find duplicate words in two files
<p>I've two text files. I need to check for duplicate words inside them. Is there a way more concise than this code?</p>

<pre><code>file1 = set(line.strip() for line in open('/home/user1/file1.txt'))
file2 = set(line.strip() for line in open('/home/user1/file2.txt'))

for line in file1 &amp; file2:
    if line:
        print(line)
</code></pre>