Create a script in Python to remove duplicate elements from a list

回复样本
Sure, here's a Python script that removes duplicate elements from a list: ```python my_list = [1, 2, 3, 2, 4, 5, 3] # use set() to remove duplicates and convert back to list new_list = list(set(my_list)) print(new_list) ``` Output: `[1, 2, 3, 4, 5]`
出版日期: 1 年前