Check words in multi files, if the same then replace by space
<p>In test01.txt</p>

<pre><code>are
lol
test
hello
next
</code></pre>

<p>In text02.txt</p>

<pre><code>lol : positive
next : objective
sunday! : objective
are : objective
you : objective
going? : neutral
mail : objective
</code></pre>

<p>My codes:</p>

<pre><code>file1 = open('C://Users/Desktop/test01.txt')
file2 = open('C://Users/Desktop/test02.txt')

rfile1 = file1.readlines()
rfile2 = file2.read()

for test2 in rfile2.split("\n"):
    testt2 = test2.split("\t")
    for test1 in rfile1:
        slsw1 = test1.split()
        for wttest2 in testt2:
            sttestt2 = wttest2.split(" ")
        if sttestt2[0] in slsw1[0]:
            sttestt2[0] = sttestt2[0].replace(sttestt2[0], "")
            print sttestt2[0], ":", sttestt2[2]
</code></pre>

<p>Expected results:</p>

<pre><code> : positive
 : objective
sunday! : objective
 : objective
you : objective
going? : neutral
mail : objective
</code></pre>

<p>I am trying to replace the same word in "test02.txt" with space and print out for seeing the results but I got print out only space. I want to print out all results as in expected results. </p>

<p>Did I miss something? Any suggestion?</p>
