Question: can only use basic functions to write the program (Only if, elif, else statements, while loops, strings, and lists. Nothing else please!) Write a program

 can only use basic functions to write the program (Only if,elif, else statements, while loops, strings, and lists. Nothing else please!) Write

can only use basic functions to write the program (Only if, elif, else statements, while loops, strings, and lists. Nothing else please!)

Write a program that asks the user to enter a password, and then checks it for a few different requirements before approving it as secure and repeating the final password to the user. The program must re-prompt the user until they provide a password that satisfies all of the conditions. It must also tell the user each of the conditions they failed, and how to fix it. If there is more than one thing wrong (e.g., no lowercase, and longer than 20 characters), the program must print out all of the things that are wrong, and how to fix them. The program follows these rules for passwords: 1. The password must contain at least one lowercase letter. 2. The password must contain at least one uppercase letter 3. The password must be between 6 and 20 characters, inclusive. a. If the password is between 6 and 13 characters, inclusive, it must contain a "7" somewhere in the password b. If the password is between 14 and 20 characters, inclusive, it must contain a "2" somewhere in the password 4. The password cannot contain the characters "" and "I" (lowercase "L" and uppercase "i") at the same time. (It can contain either, just not both at the same time. It may also contain neither.)

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!