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
|
1977 Discussions
|
Please Login in order to post a comment
Brute Force:
import re if name == 'main': s = input() print(str(bool(re.search(r'\w', s))).capitalize()) print(str(bool(re.search(r'[a-zA-Z]', s))).capitalize()) print(str(bool(re.search(r'\d', s))).capitalize()) print(str(bool(re.search(r'[a-z]', s))).capitalize()) print(str(bool(re.search(r'[A-Z]', s))).capitalize())
BruteForce : if name == 'main': S = input()
if name == 'main': s = input()
if name == 'main': s = input()