#K47732. Valid Password Checker
Valid Password Checker
Valid Password Checker
You are given a password string. Your task is to determine if the password is valid based on the following rules:
- The password length is between 6 and 12 characters (inclusive).
- The password must contain at least one uppercase letter (A-Z).
- The password must contain at least one lowercase letter (a-z).
- The password must contain at least one digit (0-9).
- The password must not contain any whitespace characters.
Note: Special characters are allowed as long as the above conditions are met.
For example:
Input: Abc123 Output: True</p>Input: abc123 Output: False
inputFormat
The input consists of a single line containing the password string to be validated. The string may include letters (both uppercase and lowercase), digits, and special characters.
outputFormat
Output a single line: True
if the password meets all the conditions, or False
otherwise.
Abc123
True
</p>