Created
March 5, 2019 10:50
-
-
Save alxmtr/deb77a124e17874369723d8da8f0b8a5 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
from random import sample | |
from string import ascii_letters, digits | |
def generate_password(length): | |
return ''.join(sample(ascii_letters + digits, length)) | |
print(generate_password(10)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment