You are viewing a single comment's thread. Return to all comments →
import re pattern = r'^[a-z]{,3}\d{2,8}[A-Z]{3}' for _ in range(int(input())): print('VALID' if re.match(pattern, input()) else 'INVALID')
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 →