Converting a set into list

TheSaint nobody at nowhere.net.no
Sun May 15 12:05:44 EDT 2011


Chris Torek wrote:

> >>> x = ['three', 'one', 'four', 'one', 'five']
> >>> x
> ['three', 'one', 'four', 'one', 'five']
> >>> list(set(x))
> ['four', 'five', 'three', 'one']

Why one *"one"* has purged out?
Removing double occurences in a list?
-- 
goto /dev/null



More information about the Python-list mailing list