Relative Content

Tag Archive for pythonrandomuser-defined-functions

Having a password generator use user input to for generation of password with set parameters

I am trying to create a password generator program where the user can select for example 8 special characters, 5 uppercase letters and 10 lowercase letters to be generated into a password. So for the above example the password would be 23 characters long with 8 special characters, 5 uppercase letters and 10 lowercase letters. I have the input created but what I am unsure of is how to get the program to know that for example 8 special characters will be 8 random characters from string.punctuation for example.