Question: Write a Python program that simulates changing your CS password. Start by reading in a string from the user, representing the new password. Ask the

Write a Python program that simulates changing your CS password. Start by reading
in a string from the user, representing the new password. Ask the user to re-enter the
same string. If the strings do not match, print out "Passwords must match" and go no
further.
If the strings match, determine if it is a suitable CS password. Passwords in the CS
department must have the following properties:
At least 8 characters long.
Contain at least one lower case letter.
Contain at least one upper case letter.
Contain at least one digit [0-9]
If the password is acceptable, print out "Password changed successfully", and if not,
print out "Password not complex enough",
Hints:
Practice good modular programming by
writing a function that accepts a string (the
password) and returns True if the
password is good, and False otherwise.
Looping is NOT required You are
encouraged to avoid looping, even if you
know how to do it. Focus on using string
methods. Check the documentation.
Write a Python program that simulates changing

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!