Skip to content
C

Password Strength Validator

Mediumpython

Write a function that validates a password requires at least 8 characters, one uppercase letter, one digit, and one special character (!@#$%^&*), using regex.

Approach: run four independent checks — a plain length check, plus three separate regex searches — and require all four to pass.

Input: One line: a password.

Output: One line: True or False.

Input (stdin)

Output

Run your code to see output here...