You are viewing a single comment's thread. Return to all comments →
import re n = int(input()) pattern = re.compile(r"\A[a-z]{,3}\d{2,8}[A-Z]{3,}\Z") print(*["VALID" if pattern.match(input()) is not None else "INVALID" for _ in range(n)], sep="\n")
Seems like cookies are disabled on this browser, please enable them to open this website
Utopian Identification Number
You are viewing a single comment's thread. Return to all comments →