Below is the script for the Python Password Generator Program Script
import random
import string
numberofcharacters = int(input("How many characters do you want your password to be? > "))
letters = string.ascii_lowercase + string.ascii_uppercase + string.punctuation + string.digits
Password = "".join(random.sample(letters, k=numberofcharacters))
print("Your new password is",Password)
No comments:
Post a Comment