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