You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': s = input() check_validation = {"Check isalnum": lambda s: s.isalnum(), "Check isalpha": lambda s: s.isalpha(), "Check isdigit": lambda s: s.isdigit(), "Check islower": lambda s: s.islower(), "Check isupper": lambda s: s.isupper()} check = [any([check_validation[check](character) for character in s]) for check in check_validation] for i in check: print(i)
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 →