Question: PYTHON FUNCTION The restrictions are: no lists no iteration - only recursion no abstract list functions no modules allowed to import At some point or

PYTHON FUNCTION The restrictions are: no lists no iteration - only recursionPYTHON FUNCTION

The restrictions are:

no lists

no iteration - only recursion

no abstract list functions

no modules allowed to import

At some point or another, you probably have had to set a new password for an account. You might have just wanted to use "password" as your password to make life a whole lot easier, but the application did not allow it. It is now your turn to make that algorithm! Write the function new-password() that consumes no values, but prompts the user with the phrase "Enter password: " to enter a new password as shown below in the sample interactions. The function determines how strong your password is based on the following criteria: It has at least 10 characters It has at least 1 uppercase character It has at least 1 lowercase character It has at least 3 non-alphanumeric characters (not necessarily distinct) It has at least 2 digits (not necessarily distinct) It contains no spaces The function returns None and prints the strength of your password. If the password contains all of the criteria listed above, then the function prints Good. If the password contains 4 or 5 out of the 6 criteria, then the function prints Fair. Otherwise, the function prints Weak. Please see the samples below, and match the prompts and the outputs exactly. A sample interaction after calling new_password() => None Enter password: goodPass12!@@ Good Another sample interaction after calling new_password() => None Enter password: fairPass !!! Fair

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!