You are viewing a single comment's thread. Return to all comments →
import re check = re.compile(r'^[789]\d{9}$') N = int(input()) while N > 0: N -= 1 print('YES' if check.match(input()) else 'NO')
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 →