Question: Password Validator Task: Write a function validate _ password ( password ) that checks if the given password is strong. A strong password has at

Password Validator
Task: Write a function validate_password(password) that checks if the given password is strong. A strong password has at least 8 characters,
contains both uppercase and lowercase letters, and has at least one digit.
def validate_password(password):
# your implementation here
pass
# # Student Test Cases
# assert validate_password("Password123")== True
# assert validate_password("pass")== False
# assert validate_password("12345678")== False
* For each of the functions below, at least two examples are provided to test your functions.
functions will be tested both with examples provided in each question and with extra examples.
Each function has to be documented with docstrings . In particular, each function has to have docstrings that specify: a. description about what the function does (while mentioning parameter names) b. preconditions, if any
 Password Validator Task: Write a function validate_password(password) that checks if the

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!