Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Password Generator
- # Choice
- from random import choice
- import string
- output_str=""
- def makeChoices(len):
- choice_str=""
- for i in range(len):
- chce = choice(string.ascii_letters + string.digits + string.punctuation)
- choice_str=choice_str + chce
- return(choice_str)
- # Main***
- length=int(input("Password Length? "))
- output_str=makeChoices(length)
- print("Your Password is: "+output_str)
- print("Cool!")
- #print(dir(string))
Add Comment
Please, Sign In to add comment