You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': s = input() isalnum = isalpha = isdigit = islower = isupper = False for x in s: if x.isalnum(): isalnum = True if x.isalpha(): isalpha = True if x.isdigit(): isdigit = True if x.islower(): islower = True if x.isupper(): isupper = True if isalnum and isalpha and isdigit and islower and isupper: break print(isalnum) print(isalpha) print(isdigit) print(islower) print(isupper)
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 →