Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python removing duplicate item

list_1 = [1, 2, 1, 4, 6]
list_2 = [7, 8, 2, 1]

print(list(set(list_1) ^ set(list_2)))
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #removing #duplicate #item
ADD COMMENT
Topic
Name
6+2 =