Build a Password Strength Checker (Python)
Build a password strength checker in Python - length and character-class rules, a score, and helpful feedback - runnable in your browser on a set of sample passwords.
- The Rules Write one small function per password rule - length and the four character classes - and test them on sample passwords.
- Turning Rules into a Score Combine the five rule results into a single 0–5 score and a weak/ok/strong label that a person can read at a glance.
- Useful Feedback Turn the failed rules into a short list of plain-language fixes - "add a symbol", "make it longer" - instead of a bare score.
- Catching Common Passwords Reject a built-in list of common and leaked passwords no matter how they score, finish the full check_password function, and see where real systems go further.