You are viewing a single comment's thread. Return to all comments →
from re import match [print("YES" if match(r'^[789]\d{9}$', input()) else "NO") for _ in range(int(input()))]
Seems like cookies are disabled on this browser, please enable them to open this website
Validating phone numbers
You are viewing a single comment's thread. Return to all comments →