String Validators

  • + 0 comments
    def checkContent(string):
        print(any(i.isalnum() for i in string))
        print(any(i.isalpha() for i in string))
        print(any(i.isdigit() for i in string))
        print(any(i.islower() for i in string))
        print(any(i.isupper() for i in string))
    
    if __name__ == '__main__':
        s = input()
        checkContent(s)