We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Strings
- String Validators
- Discussions
String Validators
String Validators
Sort by
recency
|
1933 Discussions
|
Please Login in order to post a comment
s = input()
has_alnum = has_alpha = has_digit = has_lower = has_upper = False
for c in s: if c.isalnum(): has_alnum = True
print(has_alnum) print(has_alpha) print(has_digit) print(has_lower) print(has_upper)
if name == 'main': s = input()
for char in s: if char.isalnum() == True: print("True") break else: print("False")