Practice
Password Strength Checker
HARDString Processing
Read a password string. Output Strong if it meets both of the following criteria:
- At least 8 characters long
- Contains at least one digit (0โ9)
Otherwise output Weak.
Input: A single string (the password).
Output: Strong or Weak.
Example:
Input: hello123
Output: Strong
Premium is coming soon. All grading features are currently unlocked.
Sample Test Cases
Test 1: 8 chars with digit
Inputs: hello123
Expected: Strong
Test 2: Too short
Inputs: abc123
Expected: Weak
Test 3: 8 chars, no digit
Inputs: abcdefgh
Expected: Weak
Ctrl+Enter
Press Ctrl+Enter to run your code
or Ctrl+Shift+Enter to grade