Python Program to Match Lines in File
<p>I am trying to write a program in python that reads through a .txt file and checks </p>

<pre><code>If line[i] == line [i+12]:
    print line[i]
</code></pre>

<p>So far, I have:</p>

<pre><code>f=open('file.txt', "r")

count=0
for line in f:
    while count &lt; 1000:
        print(count)
        if line(count) == line(count+12):
            print (line(count))
        count+=1
</code></pre>

<p>My output is 1000 zeros. </p>

<p>Any help appreciated.</p>
