how to sort out repeated entry from a column in python
<p>i have a file like:  </p>

<pre><code>q12j4
q12j4
fj45j
q12j4
fjmep
fj45j
</code></pre>

<p>now all i wanted to do is:  </p>

<ul>
<li>find if any entries are repeated,</li>
<li><p>if so then print the entry once and those are not repeated print 'em normally.<br>
the output should be like:  </p>

<pre><code>q12j4  
fj45j  
fjmep  
</code></pre>

<p>[repetition is omitted]  </p></li>
</ul>

<p>I was trying to do it with <code>defaultdict</code>function but I think it will not work for strings.<br>
please help..</p>
