You are viewing a single comment's thread. Return to all comments →
my solution: import re N=input() for i in range(N):
if re.match(r'[789]\d{9}$',raw_input()): print 'YES' else: print '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 →
my solution:
import re
N=input()
for i in range(N):