# breaking it down easy

Password Report Card

The password checker grades on four rules: at least 8 characters, has a digit, has an uppercase letter, has one of !?*. šŸ”

You get a password. Print score <0-4> verdict <strong/medium/weak> — strong needs all 4, medium needs 2 or 3, weak is 0 or 1.

Example:

Input: password = "Dragon!42" Output: score 4 verdict strong

It's 9 characters (≄8 āœ“), has a digit (āœ“), has an uppercase letter D (āœ“), and has ! (āœ“) — all 4 rules pass, so the score is 4 and the verdict is strong.

šŸ’” need a hint?

brk-password-report.pyšŸ”’ given lines are locked — write your code in between
loading...