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'}
 
PREVIOUS NEXT
Tagged: #convert #list #set #python
ADD COMMENT
Topic
Name
4+3 =