You are viewing a single comment's thread. Return to all comments →
if name == 'main': s = input()
has_alnum = bool() has_alpha = bool() has_digit = bool() has_lower = bool() has_upper = bool() for ch in s: if ch.isalnum(): has_alnum = True if ch.isalpha(): has_alpha = True if ch.isdigit(): has_digit = True if ch.islower(): has_lower = True if ch.isupper(): has_upper = True print(has_alnum) print(has_alpha) print(has_digit) print(has_lower) print(has_upper)
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 →
if name == 'main': s = input()