how to make a list in set in python 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'}