names = ['Barry', 'Alice', 'Bob', 'Bob'] unique_names = set(names) # Result: # {'Alice', 'Barry', 'Bob'}