a guest Mar 15th, 2019 59 Never
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
- x = input("Do you want to generate another password?")
RAW Paste Data