Question: Python script successfully generates a random password using uppercase letters, lowercase letters, numbers, and symbols as chosen by the user (the user has the option
- Python script successfully generates a random password using uppercase letters, lowercase letters, numbers, and symbols as chosen by the user (the user has the option to use any or all of these to generate the password)
- To generate the password, the script asks the user for password length and whether or not to use each of the characters as defined in requirement 1.
- The users responses are passed as arguments to a function generatePassword, a function that has parameters for each of those user responses.
- That function uses if statement(s) and loop(s) to generate a new random password. Please see the code file for a hint on using Python's random class.
- That function returns the newly generated password as a return value
- The new password is displayed to the user
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
