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.
-- http://mail.python.org/mailman/listinfo/python-list