Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Password generator
- import random
- def pass_word(length):
- characters = ('abcdefghijklmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789!£$%^&*/@#')
- pword = ""
- for loop in range(0,length):
- pword = pword + random.choice(characters)
- return pword
- pass_length = int(input("How many characters do you want your password to be ? "))
- print("Your password is {} ".format(pass_word(pass_length)))
Add Comment
Please, Sign In to add comment