You are viewing a single comment's thread. Return to all comments →
import re pattern=r"^[\.\_]{1}[0-9]{1,}[a-zA-Z]*[\_]?$" for _ in range(int(input())): if re.match(pattern,input()): print("VALID") else: print("INVALID")
Seems like cookies are disabled on this browser, please enable them to open this website
Alien Username
You are viewing a single comment's thread. Return to all comments →