Question: Write a python program using only While loops Create a variable called oldPassword and set it to badpassword AAAAAAAAAAA Ask the user this question: Enter

Write a python program using only While loops Create a variable called oldPassword and set it to "badpassword" AAAAAAAAAAA Ask the user this question: "Enter a new password:" The password is OK if all of these conditions are met: 1) the password is not the string "1234", "mypassword", or "jackrabbit" 2) the length of the password is a minimum of 4 characters long and a maximum of 16 characters long 3) the password is not the same as the string in old password If the password follows the 3 rules above, output this string: Password Change Accepted. and stop. Otherwise, output ONE of these strings depending on the condition violated: The new password must contain between 4 and 16 characters! The new password must be different than the old one! The new password cannot be 'mypassword', '1234', or 'jackrabbit'! and then start over by asking them to "Enter a password:" If the user enters an empty string (by just pressing ENTER), print this string: Password Change Canceled and stop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
