Skip to content
CampusEduX

Password Strength Validator

Mediumpython
Learn the Concept: Regular Expressions

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.

Related Problems

Input (stdin)

Output

Run your code to see output here...