convert something into a list in python code example
Example 1: how to convert a set to a list in python
my_set = set([1,2,3,4])
my_list = list(my_set)
print my_list
>> [1, 2, 3, 4]
Example 2: convert string to list python
word = "Hey Hello world"
print(list(word))
# output
# ["Hey", "Hello", "world"]