You are viewing a single comment's thread. Return to all comments →
has_alphanumeric, has_alphabetical, has_digits, has_lowercase, has_uppercase = False, False, False, False, False for char in input().strip(): if char.isalnum(): has_alphanumeric = True if char.isalpha(): has_alphabetical = True if char.isdigit(): has_digits = True if char.islower(): has_lowercase = True if char.isupper(): has_uppercase = True print(f'{has_alphanumeric}\n{has_alphabetical}\n{has_digits}\n{has_lowercase}\n{has_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 →