Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- from random import choice
- from random import randint
- def password_generator():
- length = (input("How long would you like your password to be?"))
- p_length =int(length)
- password = ""
- for i in range(p_length):
- password = password + chr(randint(33, 126))
- print("Your password is: " + password)
- password_generator()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement