You can use the set() method to remove duplicates from a list. The set() method will take any iterable as an argument and return a set object of unique elements.
Example:
my_list = [1,2,3,4,3,2,1]
my_set = set(my_list)
print(my_set)
# Output: {1, 2, 3, 4}