Question: Programming in Python Having a secure password is a very important practice, when much of our information is stored online. Write a program that validates

Programming in Python

Having a secure 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.

*The password must have at least one digit.

Write a program that asks for a password, then asks to confirm it. If passwords don't match or the rules are not fulfilled, prompt again. Your program should include a function that checks whether a password is valid.

*must use len() function to test password length.

*loop over each character (that can be a string) and use if statements to test for upper and lower characters as well as digits.

*the tests should be done as functions returning either true or false for the above rules.

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!