Password strength validator

Write codeEasy12 min

Your task

Implement a password strength validator for a sign-up form. Return True only if the password satisfies ALL of: at least 8 characters long, contains at least one uppercase letter, at least one lowercase letter, at least one digit, and at least one special character (any character that is not a letter or digit). Otherwise return False.

Examples

password_strength(pw: str) -> bool
Example 1
Inputpassword_strength("Abcdef1!")
OutputTrue