remove duplicates from list

49

how to make python remove the duplicates in list -

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

  print(mylist) 

Comments

Submit
0 Comments