You are viewing a single comment's thread. Return to all comments →
Me, neither. Combine with eval, code can be simplified to
for test in ('isalnum', 'isalpha', 'isdigit', 'islower', 'isupper'): any(eval("c." + test + "()") for c in s)
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 →
Me, neither. Combine with eval, code can be simplified to