Question: Having a strong password is a very important practice, when much of our information is stored online. Write a program that validates a new password,
Having a strong password is a very important practice, when much of our information is stored online. Write a program 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. in python code.
The password must have at least one digit.
The password must have at least one special character non alphnumeric
The password must not have spaces.
Write a program that asks for a password. If the password rules are not fulfilled, prompt again.
Sample run:Does not fulfill the rules.
Enter your password: Abcd
Does not fulfill the rules.
Enter your password: abcd
Does not fulfill the rules.
Enter your password: ABCD
Does not fulfill the rules.
Enter your password: ABCDefgh
Does not fulfill the rules.
Enter your password: AaBbCc
Does not fulfill the rules.
Enter your password: AaBb#d
The 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
