Use a set to find the unique values from the list mylist = [1,2,2,3,4,4,1,2,3,3,2]