Sort by

recency

|

478 Discussions

|

  • + 0 comments
    n=int(input())
    for _ in range(n):
        a=input().strip()
        if(len(a)==10 ):
            if(a.startswith('9') or a.startswith('7') or a.startswith('8')):
                if(a.isdigit()):
                    print('YES')
                else:
                    print('NO')
            else:
                    print('NO')
        else:
            print('NO')
    
  • + 0 comments

    check = bool(re.match(r"^(7|8|9){1}[0-9]{9}$",No))

  • + 0 comments

    n=int(input()) for i in range(n): number = input().strip()

    if len(number) == 10 and number[0] in "789" and number.isdigit():
        print("YES")
    else:
        print("NO")
    
  • + 0 comments

    how can to hack any apps example hafla idrecharge

  • + 0 comments
    import re
    for _ in range(int(input())):
        print('YES' if re.match(r'^[789]\d{9}$', input()) else 'NO')