String Validators

  • + 0 comments
    if __name__ == '__main__':
        s = input()
        a = False
        b = False
        c = False
        d = False
        e = False
        for i in s:
            if i.isalnum():
                a = True
            if i.isalpha():
                b = True
            if i.isdigit():
                c = True
            if i.islower():
                d = True
            if i.isupper():
                e = True
        print(a,b,c,d,e, sep='\n')