Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to make python remove the duplicates in list


  mylist = ["a", "b", "a", "c", "c"]
mylist = list(dict.fromkeys(mylist))

  print(mylist) 
Source by w3schoolsrus.github.io #
 
PREVIOUS NEXT
Tagged: #python #remove #duplicates #list
ADD COMMENT
Topic
Name
4+4 =