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}