Back to Practice
#0179

Password Rule Checker

EasyPython15 min10 XP

Problem

Return True if password has at least 8 characters, at least one lowercase letter, one uppercase letter, and one digit.

Why This Matters

Validation functions show up in forms, pipelines, and API input checks. The trick is checking rules separately and returning a clear boolean.

Function Signature

def is_strong_password(password):

Examples

Example 1
Input"Data2026"
OutputTrue

It has 8 characters, lowercase letters, uppercase D, and digits.

Constraints

  • Return the exact requested result.
  • Handle common edge cases.
  • Keep the solution readable before optimizing.
CodePython
Visible browser tests run here when available.
Testcases1 visible / 3 hidden categories
Core example
Input"Data2026"
ExpectedTrue

It has 8 characters, lowercase letters, uppercase D, and digits.

Hidden Test Categories
minimal inputrepeated valueslarger realistic input