Your question is Password Validation Rules. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Mistral Solutions firmware uses password validation before accepting credentials through an embedded configuration interface. Implement a validator that returns whether a password satisfies every required rule.
A password is valid if it:
A to Z.0 to 9.aA is allowed but aa is not.Given a string password, return True if all rules are satisfied; otherwise, return False. The input contains printable ASCII characters only. A space counts as a special character.
def validate_password(password):