Valid password
Input
is_strong_password('Aa1!abcd')
Output
True
Meets length and contains uppercase, lowercase, digit, and special char.
Full lesson preview
Check password strength according to multiple rules and return a boolean.
Problem statement
Task
Examples
Input
is_strong_password('Aa1!abcd')
Output
True
Meets length and contains uppercase, lowercase, digit, and special char.
Input
is_strong_password('weakpass')
Output
False
Missing digit, uppercase and special character.
Input format
Output format
Constraints
Samples
Input
is_strong_password('Password1!')
Output
True
Typical acceptable strong password.