Created
January 30, 2013 14:34
-
-
Save stevedoyle/4673666 to your computer and use it in GitHub Desktop.
Removing duplicates from a list in python
This file contains 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
data = [1,2,2,3,4,4,5,6,5,7] | |
no_dups = list(set(data)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment