You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': s = input() for i in s: if i.isalnum(): print(True) break else: print(False) for i in s: if i.isalpha(): print(True) break else: print(False) for i in s: if i.isdigit(): print(True) break else: print(False) for i in s: if i.islower(): print(True) break else: print(False) for i in s: if i.isupper(): print(True) break else: print(False)
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 →
Simple and easy to understand