Write a python programwith a function checkpassw0rd


Assignment: Input and Output Files

Write a Python programwith a function checkPassw0rd (Note that function name has a zero instead of an o).

public String checkPassw0rd( psswd)

The password uses the following criteria:

• The password should be at least 6 characters strong.
• The password should contain at least one upper case letter.
• The password should contain at least TWO lower case letters
• The password should have at least one digit.
• The password should have a special character like $ or ! or %.

The function then verifies that it meets the stated criteria. If it does it should return message "Password Accepted". If not it should return a message as to what is wrong with the password and why it is not accepted.

Create a python file passw0rd. The main() should read in the given input file passwdin.txt. This input file has six passwords. Your main method should read each password and call the above method with each string as the argument and write the password string and the return argument into an output file passwdout.txt.

So for example if the first password being read from the input file is Myname!, then in the output file it should say as the first line

MyName! - Password is not accepted.

Password should have at least one digit.

The response should include a reference list. Double-space, using Times New Roman 12 pnt font, one-inch margins, and APA style of writing and citations.

Solution Preview :

Prepared by a verified Expert
Python Programming: Write a python programwith a function checkpassw0rd
Reference No:- TGS02947801

Now Priced at $70 (50% Discount)

Recommended (99%)

Rated (4.3/5)