Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import string
  2. from random import *
  3. x = "yes"
  4. while x == "yes":
  5. characters = string.ascii_letters + string.punctuation + string.digits
  6. password = "".join(choice(characters) for x in range(randint(8, 16)))
  7. #change the randint to make the max and min length for password
  8. print(password)
  9. x = input("Do you want to generate another password?")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement