best way to compare sequence of letters inside file?
<p>I have a file, that have lots of sequences of letters.<br>
Some of these sequences might be equal, so I would like to compare them, all to all.<br>
I'm doing something like this but this isn't exactly want I wanted:  </p>

<pre><code>for line in fl:
line = line.split()
for elem in line:
    if '&gt;' in elem:
        pass
    else:
        for el in line:
            if elem == el:
                print elem, el
</code></pre>

<p>example of the file:</p>

<pre><code>&gt;1
GTCGTCGAAGCATGCCGGGCCCGCTTCGTGTTCGCTGATA  
&gt;2
GTCGTCGAAAGAGGTCT-GACCGCTTCGCGCCCGCTGGTA    
&gt;3
GTCGTCGAAAGAGGCTT-GCCCGCCACGCGCCCGCTGATA  
&gt;4
GTCGTCGAAAGAGGCTT-GCCCGCTACGCGCCCCCTGATA  
&gt;5
GTCGTCGAAAGAGGTCT-GACCGCTTCGCGCCCGCTGGTA  
&gt;6
GTCGTCGAAAGAGTCTGACCGCTTCTCGCCCGCTGATACG  
&gt;7
GTCGTCGAAAGAGGTCT-GACCGCTTCTCGCCCGCTGATA
</code></pre>

<p>So what I want if to known if any sequence is totally equal to 1, or to 2, and so on.</p>
