You are viewing a single comment's thread. Return to all comments →
for x in range(int(input())): i = input() if i[0] in ["7","8","9"] and len(i) == 10 and i.isnumeric():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 →
for x in range(int(input())): i = input() if i[0] in ["7","8","9"] and len(i) == 10 and i.isnumeric():print("YES") else: print("NO")