list remove duplicates python doesn't work code example
Example: python remove duplicates from list
mylist = ["a", "b", "b", "c", "a"]
mylist = sorted(set(mylist))
print(mylist)
mylist = ["a", "b", "b", "c", "a"]
mylist = sorted(set(mylist))
print(mylist)