Practice
Username Validator
MEDIUMString Processing
Read a username string. Output Valid if the username length is between 6 and 12 characters inclusive, otherwise output Invalid.
Input: A single string.
Output: Valid or Invalid.
Example:
Input: student1
Output: Valid
Premium is coming soon. All grading features are currently unlocked.
Sample Test Cases
Test 1: 8 chars — valid
Inputs: student1
Expected: Valid
Test 2: 5 chars — too short
Inputs: hello
Expected: Invalid
Test 3: 17 chars — too long
Inputs: averylongusername
Expected: Invalid
Ctrl+Enter
Press Ctrl+Enter to run your code
or Ctrl+Shift+Enter to grade