Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- import string
- lower=string.ascii_lowercase
- upper=string.ascii_uppercase
- num=string.digits
- symbols=string.punctuation
- all=lower+upper+num+symbols
- temp=random.sample(all,6)
- password="".join(temp)
- print(password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement