Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert list to set python

names = ['Barry', 'Alice', 'Bob', 'Bob']

unique_names = set(names)
# Result:
# {'Alice', 'Barry', 'Bob'}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #list #set #python
ADD COMMENT
Topic
Name
5+4 =