You are viewing a single comment's thread. Return to all comments →
alphanumeric = False alphabetical = False digits = False lowercase = False uppercase = False for l in s: if l.isalnum(): alphanumeric = True if l.isalpha(): alphabetical = True if l.isdigit(): digits = True if l.islower(): lowercase = True if l.isupper(): uppercase = True print(f"{alphanumeric}\n{alphabetical}\n{digits}\n{lowercase}\n{uppercase}")
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 →