String Validators

  • + 1 comment

    if name == 'main': s = input() for i in s: if i.isalnum() == True: print(True) break

    for i in s:
        if i.isalpha() == True:
            print(True)
            break
    for i in s:
        if i.isdigit() == True:
            print(True)
            break
    for i in s:
        if i.islower() == True:
            print(True)
            break
    for i in s:
        if i.isupper() == True:
            print(True)
            break