What's an easy way to eliminate duplicate values from a list?

Converting the list into a set to discard the duplicatesLooping over the list to remove duplicates

Converting the list into a set to discard the duplicates.