python list to set

my_set = set([1,2,3,4])
my_list = list(my_set)
print my_list
>> [1, 2, 3, 4]

Here is what the above code is Doing:
1. We create a set called my_set.
2. We create a list called my_list.
3. We convert my_set into a list and assign it to my_list.
4. We print my_list.

The output is [1, 2, 3, 4].