You are viewing a single comment's thread. Return to all comments →
Not the best attempt on solving the time complexity in the problem but here you go.
if __name__ == '__main__': s: str = input() if len(s) <= 0 or len(s) > 1000: raise ValueError("Invalid string length") string_set = set(s) for validator in [str.isalnum, str.isalpha, str.isdigit, str.islower, str.isupper]: print(any(validator(c) for c in string_set))
Seems like cookies are disabled on this browser, please enable them to open this website
String Validators
You are viewing a single comment's thread. Return to all comments →
Not the best attempt on solving the time complexity in the problem but here you go.