Hard
Password Checker
Write small helper functions
has_upper, has_digit, long_enough (8+ characters) and check(pw) that returns a list of the rules broken. Print Strong, or the broken rules joined by , using the names uppercase, digit, length.Input
One line.
Output
One line.
Sample 1
Input
Password1
Output
Strong
Sample 2
Input
abc
Output
uppercase, digit, length
Output appears here