Skip to main content

Practice ยท 1 of 2

Collect every password problem

Implement check_password(pw) โ€” every rule is checked, every violation is collected, the order is fixed (length, uppercase, lowercase, digit, whitespace, breach list), and non-string input returns (False, ['must be a string']) before any other rule runs.

Difficulty: advanced

Back to lesson: Practice: Hardening Drills