Tino Wildenhain wrote:
thomasvang...@gmail.com wrote:You could use: B=list(set(A)).sort() Hope that helps.That would leave a B with value None :-) B=list(sorted(set(A)) could work.
sorted() accepts an iterable, eg a set, and returns a list: B = sorted(set(A)) -- http://mail.python.org/mailman/listinfo/python-list