Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started