Question: Having a secure password is a very important practice, when much of our information is stored online. Write a function that validates a new password,
Having a secure password is a very important practice, when much of our information is stored online.
Write a function that validates a new password, following these rules:
The password must be at least characters long.
The password must have at least one uppercase and one lowercase letter.
The password must have at least one digit.
n the body of your program, prompt the user for a password, and ask the user again in order to confirm
it If the passwords dont match or the rules are not fulfilled, prompt again. It's okay to display the
password as it's typed.
Please enter your password: CSrocks
Please confirm your password: Csrocked
The password does not match.
Please enter your password: CSrocks
Please confirm your password: CSrocks
Password Is valid
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
