Created
December 21, 2017 02:11
-
-
Save keithrozario/32cc947c97142d1f8946f53360b0929a to your computer and use it in GitHub Desktop.
generate a random bunch of strings for captcha
This file contains hidden or 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 string | |
from random import choice | |
alphabet = string.ascii_letters + string.digits | |
captcha = "".join(choice(alphabet) for x in range(1, 4)) | |
print(captcha) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment