You are viewing a single comment's thread. Return to all comments →
I do it like this is it legal?
Input = int(input())
for i in range(Input):
number = input() output = "NO" if number.isdigit(): if len(number) == 10 and number[0] in ['7', '8', '9']: output = "YES" print(output)
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 →
I do it like this is it legal?
Input = int(input())
for i in range(Input):