String Validators

  • + 0 comments

    i have used ur code in pypy 3 but i m getting this error Traceback (most recent call last): File "Solution.py", line 3, in TypeError: 'type' object is not iterable

    if __name__ == '__main__':
        s = input()
        print (any(c.isalnum()  for c in str))
        print (any(c.isalpha() for c in str))
        print (any(c.isdigit() for c in str))
        print (any(c.islower() for c in str))
        print (any(c.isupper() for c in str))