Input
password = "Abcdef12"
Output
"medium"
Length 8, contains uppercase, lowercase, and digits — 3 categories.
Implement `tag_password_strength(password)` that returns a strength label. Return `"invalid"` if the password contains any whitespace. Otherwise, count how many character categories appear: lowercase, uppercase, digit,...
main.pyEditable starterpassword = "Abcdef12"
"medium"
Length 8, contains uppercase, lowercase, and digits — 3 categories.
password = "Abc 12345"
"invalid"
Contains whitespace.
How would you change the rules so password strength can be configured with custom length thresholds and required category counts?