You are viewing a single comment's thread. Return to all comments →
Concise solution in python 3
import re for _ in range(int(input())): print("YES" if bool(re.match(r'^[A-Z]{5}\d{4}[A-Z]$', input())) else "NO")
Seems like cookies are disabled on this browser, please enable them to open this website
Valid PAN format
You are viewing a single comment's thread. Return to all comments →
Concise solution in python 3