Pseudocode Compiler
Practice

Password Strength Checker

HARDString Processing

Read a password string. Output Strong if it meets both of the following criteria:

  1. At least 8 characters long
  2. 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
Press Ctrl+Enter to run your code
or Ctrl+Shift+Enter to grade