#144EasyFunctions· Helper Functions
Password Strength Checker
Input format
`password`: a string of printable ASCII characters.
Output format
A dictionary with keys `score`, `strength` and `missing`.
Examples
Input: password = "Tr0ub4dor&3"
Output: {"score":5,"strength":"strong","missing":[]}
Every rule is met.
Input: password = "password"
Output: {"score":2,"strength":"weak","missing":["uppercase","digit","symbol"]}
Long enough and lower case, but nothing else.
Constraints
- 0 <= len(password) <= 100
Study first
- #python
- #functions
- #strings
- #validation
