ā back to unit
Easy
# 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...