Python Password Generator Program Script

 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

Will ChatGPT Replace Programmers?

   ChatGPT is an OpenAI-developed large language model that can understand and generate human language. It's built on the GPT architectu...