Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python remove duplicates from list

# remove duplicate from given_list using list comprehension
res = []
[res.append(x) for x in given_list if x not in res]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #remove #duplicates #list
ADD COMMENT
Topic
Name
7+7 =