Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to create a set from a list in python

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

# By far the easiest way. 
 
PREVIOUS NEXT
Tagged: #create #set #list #python
ADD COMMENT
Topic
Name
7+3 =