Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python-List: How to remove duplcate

Python-List: How to remove duplcate
{filelink=16184}

def duplicateRemover(sequence):
    liste=[]
    for i in sequence:
        if i not in liste:
            liste.append(i)
    return liste
# main
liste=[12,2,2,'a','a',12,"b"]
# show list without duplicates
print duplicateRemover(liste)

Users who found this page were searching for:

  • python dict key exists
  • python check class name
  • how to read .msg email files
  • how to use buffered reader to read from keyboard
  • change directory python
  • perl count lines in a file

No comments yet.

Leave a Comment