You are viewing a single comment's thread. Return to all comments →
Strange to see such a simple challenge following a few that are more complex. I'm used to challenges being increasingly more complex.
import re, sys print('\n'.join( ['NO', 'YES'] [re.match(r'^[789]\d{9}$', l) is not None] for l in sys.stdin.readlines()[1:]))
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 →
Strange to see such a simple challenge following a few that are more complex. I'm used to challenges being increasingly more complex.