You are viewing a single comment's thread. Return to all comments →
More Pythonic with eval function
s = raw_input() commands = "isalnum() isalpha() isdigit() islower() isupper()" print "\n".join(str(any(eval("c."+cmd) for c in s)) for cmd in commands.split())
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 →
More Pythonic with eval function