Skip to content

Instantly share code, notes, and snippets.

@jonathanpike
Created June 22, 2015 19:51
Show Gist options
  • Save jonathanpike/0262a3c63860b02b2e61 to your computer and use it in GitHub Desktop.
Save jonathanpike/0262a3c63860b02b2e61 to your computer and use it in GitHub Desktop.
# from http://www.practicepython.org/exercise/2014/05/15/14-list-remove-duplicates.html
def removedupesset(testset):
new_set = set(testset)
print new_set
test = [1, 1, 2, 3, 5, 5, 5, 6, 7, 8, 8, 9]
removedupesset(test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment