You are viewing a single comment's thread. Return to all comments →
using getattr
s = input() method_name = ['isalnum', 'isalpha', 'isdigit', 'islower', 'isupper'] for name in method_name: print(any(getattr(c, name)() 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 →
using getattr