how to remove duplicated elements in a list?
bonono at gmail.com
bonono at gmail.com
Mon Dec 19 03:27:48 EST 2005
More information about the Python-list mailing list
Mon Dec 19 03:27:48 EST 2005
- Previous message (by thread): how to remove duplicated elements in a list?
- Next message (by thread): how to remove duplicated elements in a list?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Steve Holden wrote: > Kevin Yuan wrote: > > How to remove duplicated elements in a list? eg. > > [1,2,3,1,2,3,1,2,1,2,1,3] -> [1,2,3]? > > Thanks!! > > > > >>> list(set([1,2,3,1,2,3,1,2,1,2,1,3])) > [1, 2, 3] > Would this have the chance of changing the order ? Don't know if he wants to maintain the order or don't care though.
- Previous message (by thread): how to remove duplicated elements in a list?
- Next message (by thread): how to remove duplicated elements in a list?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list