Last active
February 7, 2020 08:23
-
-
Save enonethreezed/af6d06e9c5e9ab4802ddc614b4019417 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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