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

  1. 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)
  2. 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.
  3. The users responses are passed as arguments to a function generatePassword, a function that has parameters for each of those user responses.
  4. 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.
  5. That function returns the newly generated password as a return value
  6. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!