You are viewing a single comment's thread. Return to all comments →
import re N = int(input()) for _ in range(N): S = input() if re.search(r"^[A-Z]{5}\d{4}[A-Z]$",S) : print("YES") else : print("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 →