Skip to content

Instantly share code, notes, and snippets.

@enonethreezed
Last active February 7, 2020 08:23
Show Gist options
  • Save enonethreezed/af6d06e9c5e9ab4802ddc614b4019417 to your computer and use it in GitHub Desktop.
Save enonethreezed/af6d06e9c5e9ab4802ddc614b4019417 to your computer and use it in GitHub Desktop.
import sys
from string import digits, ascii_uppercase, ascii_lowercase
from itertools import product
palabras = digits + ascii_uppercase + ascii_lowercase
dimension=int(sys.argv[1])
for combinacion in product(palabras, repeat=dimension):
print ''.join(combinacion)
# python script.py dimension
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment