Question: PYTHON PROGRAM The Program Spec Write a program using loops and functions that asks for a password, and then asks the user to confirm the

PYTHON PROGRAM

PYTHON PROGRAM The Program Spec Write a program using loops and functions

The Program Spec Write a program using loops and functions that asks for a password, and then asks the user to confirm the password chosen. Your solution will verify that both user passwords entered match. Your program must also validate that the new password follows these rules: The password must be at least 8 characters long The password must have at least one uppercase and one lowercase letter The password must have at least one digit Re-prompt the user if either 1) the two passwords entered do not match or if 2) the password does not satisfy all the rules stated above. Input Error Checking: All user input is valid data. The two user input passwords do need to match each other. A password does need to be of a minimum length as specified in the spec. Your program does not need to test for an upper bound limit on the password length. Here are some other requirements 1. Create constants versus using literals in your source code (i.e. for minimum password length) 2. Include a function that checks whether a password is valid 3. Include a loop that will continue to prompt the user until a valid password is entered

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!