Created
October 28, 2011 03:17
-
-
Save xiaom/1321544 to your computer and use it in GitHub Desktop.
how to eliminate duplicate in a list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://docs.python.org/faq/programming.html#how-do-you-remove-duplicates-from-a-list | |
mylist = list(set(mylist)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment