Validate NSP Scholarship Application Code
Validate NSP Scholarship Application Code
EasyStrings0% accepted
Priya manages scholarship applications at NSP (National Scholarship Portal) in Delhi. Each application gets a code like 'NSP2024TAMIL0001' (Portal-Year-State-Serial). Format: 'NSP' prefix, 4-digit year, state name (all caps, 4-8 letters), 4-digit serial.
Approach
Given an application code, check if it starts with 'NSP', has 4 digits, then 4-8 uppercase letters, then 4 digits, returning 'Valid' or 'Invalid'.
Input
NSP2024TAMIL0001
Output
Valid
More Strings problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards