Last active
April 27, 2020 18:46
-
-
Save saipraveenkondapalli/a4de415cddf2c133ae4c727a290b9964 to your computer and use it in GitHub Desktop.
random pssword generator between 10 and 18 characters
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 string | |
import random | |
password_length = random.randint(10, 18) | |
print("password of length between 8 and 15 will be generated") | |
password = '' | |
while password_length > 0: | |
words_and_Digits = string.ascii_letters + string.digits + "!@#$%^&*()?_+*-" | |
words = random.choice(words_and_Digits) | |
password = password + words | |
password_length -= 1 | |
print(password) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment