Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import string
- from random import *
- x = "yes"
- while x == "yes":
- characters = string.ascii_letters + string.punctuation + string.digits
- password = "".join(choice(characters) for x in range(randint(8, 16)))
- #change the randint to make the max and min length for password
- print(password)
- x = input("Do you want to generate another password?")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement