adham-ahmed

Password Generator With Python

Apr 12th, 2022 (edited)
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import random
  2. lower = "abcdefghijklmnopqrstuvwxyz"
  3. upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  4. number = "0123456789"
  5. symbol = "!@#$%^&*"
  6. string = lower + upper + number + symbol
  7. length = 21
  8. password = "".join(random.sample(string,length))
  9. print("Here is your new password: " + password)
Add Comment
Please, Sign In to add comment