Question: Write one static python method named validPassword without importing any libraries and with the following specification: Input parameters: variable named password (type string) Return Value:
Write one static python method named validPassword without importing any libraries and with the following specification:
Input parameters:
variable named password (type string)
Return Value:
type bool: True if password is valid, False otherwise
The password will be valid if it follows following criteria: At least 2 letter between a - z OR 3 letters between A - Z
At least 2 special characters of the 4 following characters . , # ( OR at least 1 number 0-9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
