i have a file like:
q12j4
q12j4
fj45j
q12j4
fjmep
fj45j
now all i wanted to do is:
- find if any entries are repeated,
- if so then print the entry once and those are not repeated print 'em normally. 
 the output should be like:- q12j4 fj45j fjmep- [repetition is omitted] 
I was trying to do it with defaultdictfunction but I think it will not work for strings.
please help..
 
     
     
     
     
    