Gold Loan Certificate Format Validation
Gold Loan Certificate Format Validation
EasyStrings0% accepted
Arjun needs to validate gold loan certificates at HDFC Bank's Mumbai branch. Certificates follow a strict format: 2 uppercase letters (state code), 5 digits (unique ID), 1 uppercase letter (purity grade).
Approach
Given a certificate string, check if it matches the pattern: 2 uppercase letters, 5 digits, 1 uppercase letter, returning 'Valid' or 'Invalid'.
Input
MH12345A
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