String Validators

  • + 0 comments

    if name == 'main':

    s = input()
    
    
    print(any(c.isalnum() for c in s))
    
    
    print(any(c.isalpha() for c in s))
    
    
    print(any(c.isdigit() for c in s))
    
    
    print(any(c.islower() for c in s))
    
    
    print(any(c.isupper() for c in s))