Skip to content

Instantly share code, notes, and snippets.

@dhermes
Created September 29, 2014 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhermes/14a76b3fcf4d6b23fbfa to your computer and use it in GitHub Desktop.
Save dhermes/14a76b3fcf4d6b23fbfa to your computer and use it in GitHub Desktop.
def fits_criterion(digit_list):
for i in xrange(10):
if digit_list.count(i) != digit_list[i]:
return False
return True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment