Skip to content

Instantly share code, notes, and snippets.

@stevedoyle
Created January 30, 2013 14:34
Show Gist options
  • Save stevedoyle/4673666 to your computer and use it in GitHub Desktop.
Save stevedoyle/4673666 to your computer and use it in GitHub Desktop.
Removing duplicates from a list in python
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