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.
checks = [
lambda s: any(c.isalnum() for c in s),
lambda s: any(c.isalpha() for c in s),
lambda s: any(c.isdigit() for c in s),
lambda s: any(c.islower() for c in s),
lambda s: any(c.isupper() for c in s)
]
for func in checks:
print(func(s))
Cookie support is required to access HackerRank
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 →
if name == 'main': s = input()