Skip to content

Instantly share code, notes, and snippets.

@juanriaza
Created March 30, 2011 19:10
Show Gist options
  • Save juanriaza/895065 to your computer and use it in GitHub Desktop.
Save juanriaza/895065 to your computer and use it in GitHub Desktop.
from collections import Counter
from itertools import product
print('\n'.join('*'*(c//2000) for i,c in
sorted(Counter(map(sum, product(range(6), repeat=8))).items())))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment