Skip to content

Instantly share code, notes, and snippets.

@mlevans
Created July 5, 2012 07:28
Show Gist options
  • Save mlevans/3052009 to your computer and use it in GitHub Desktop.
Save mlevans/3052009 to your computer and use it in GitHub Desktop.
Find Duplicates in a List
# Finding duplicates in a list
import collections
the_list = [2,2,2,1,1,0]
count = collections.Counter(the_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment