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.
if name == 'main':
s = input()
# Check for each property
a = any(c.isalnum() for c in s)
b = any(c.isalpha() for c in s)
d = any(c.isdigit() for c in s)
l = any(c.islower() for c in s)
u = any(c.isupper() for c in s)
print(a)
print(b)
print(d)
print(l)
print(u)
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() # Check for each property a = any(c.isalnum() for c in s) b = any(c.isalpha() for c in s) d = any(c.isdigit() for c in s) l = any(c.islower() for c in s) u = any(c.isupper() for c in s)