Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- lower = "abcdefghijklmnopqrstuvwxyz"
- upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- number = "0123456789"
- symbol = "!@#$%^&*"
- string = lower + upper + number + symbol
- length = 21
- password = "".join(random.sample(string,length))
- print("Here is your new password: " + password)
Add Comment
Please, Sign In to add comment