a guest Mar 15th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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?")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand