Skip to content

Instantly share code, notes, and snippets.

@joshkunz
Created February 22, 2013 18:14
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 joshkunz/5015438 to your computer and use it in GitHub Desktop.
Save joshkunz/5015438 to your computer and use it in GitHub Desktop.
Get all possible 3 tuple combinations of a-z2-9.
from itertools import product
import string
id_combos = product("".join((string.ascii_lowercase, string.digits[2:])), repeat=3)
ids = map("".join, id_combos)
print len(ids), "ids found."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment