#Use the set() function print(set()) #returns an empty set L = ["Python", "C++", "Ruby", "PHP"] print(set(L)) #creates a set from an iterable object.my_set = set([1, 2, 3]) my_list = list(my_set) # By far the easiest way. numbers = [1, 2, 6, 3, 1, 1, 6] unique_nums = set(numbers) print(unique_nums) >>>{1, 2, 3, 6}