Question
In Python: Problem 2: Check UC's Password Policy (12 points) UC's password policy. Name the file uc_password_verifier.py. Write a program that reads a single password,
In Python: Problem 2: Check UC's Password Policy (12 points)
UC's password policy. Name the file uc_password_verifier.py. Write a program that reads a single password, and determines whether or not is valid based on the rules in UC's password site: https://password.utica.edu/index.php
Your program shall display:
"The password is valid" only if it satisfies all the requirements listed in the site.
If the password is not valid, the program shall print a message describing the first rule not met by the password.
Save your program as csc101_hw5_password.py. Include a transcript in which you show your program works correctly.
TIP: Implement each password rule as a function that returns a Boolean value. For example, for the rule "Passwords must contain at least one number (1, 2, 3, 4, 5, 6, 7, 8, 9, 0)" you could implement a function with the following header:
def containsAtLeastOneDigit(password):
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started