Question: Part 4 - while, if, and strings Write a Python program that asks the user to enter a password. Decide on an appropriate message to

Part 4 - while, if, and strings Write a Python program that asks the user to enter a password. Decide on an appropriate message to display based on the following specifications. Your program checks the validity of the entered password based on the following criteria (in any order). Print an appropriate message and exit for any violation. Otherwise proceed to the next validation. If all validations pass, your program prints a success message. Hint: Use nested if statements to move from one validation to the next. 1. password include letters and digits only. No special characters. 2. Minimum length 8 characters and maximum length 15 characters (inclusive) 3. Password must start with a capital letter 4. At least 1 digit. 5. password must end with a digit. 6. At least 1 small letter. 7. If all conditions pass: print "Password accepted" 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
