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 8 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: Abcd123
Does not fulfill the rules.
Enter your password: abcd1234
Does not fulfill the rules.
Enter your password: ABCD1234
Does not fulfill the rules.
Enter your password: ABCDefgh
Does not fulfill the rules.
Enter your password: AaBbCc12
Does not fulfill the rules.
Enter your password: AaBb#d12
The password is valid.
Having a strong password is a very important

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 Programming Questions!