python turn list in set code example
Example: convert list to set python
names = ['Barry', 'Alice', 'Bob', 'Bob']
unique_names = set(names)
# Result:
# {'Alice', 'Barry', 'Bob'}
names = ['Barry', 'Alice', 'Bob', 'Bob']
unique_names = set(names)
# Result:
# {'Alice', 'Barry', 'Bob'}