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