parsing list in python

Posted by lakshmipathi on Stack Overflow See other posts from Stack Overflow or by lakshmipathi
Published on 2010-04-14T12:56:00Z Indexed on 2010/04/14 13:02 UTC
Read the original article Hit count: 425

Filed under:
|

I have list in python which has following entries

name-1

name-2

name-3

name-4

name-1

name-2

name-3

name-4

name-1

name-2

name-3

name-4

I would like remove name-1 from list except its first appearance -- resultant list should look like

name-1

name-2

name-3

name-4

name-2

name-3

name-4

name-2

name-3

name-4

How to achieve this ?

© Stack Overflow or respective owner

Related posts about python

Related posts about list