get rid of duplicate elements in list without set

Albert Hopkins marduk at letterboxes.org
Fri Mar 20 11:14:35 EDT 2009


On Fri, 2009-03-20 at 07:54 -0700, thomasvangurp at gmail.com wrote:
> You could use:
> B=list(set(A)).sort()
> Hope that helps.

Which will assign None to B.

sorted(list(... or B.sort() is probably what you meant.




More information about the Python-list mailing list