Как создать набор из списка в Python
my_set = set([1, 2, 3])
my_list = list(my_set)
# By far the easiest way.
Outrageous Oyster
my_set = set([1, 2, 3])
my_list = list(my_set)
# By far the easiest way.
my_set = set([1,2,3,4])
my_list = list(my_set)
print my_list
>> [1, 2, 3, 4]