You are viewing a single comment's thread. Return to all comments →
ls = [False,False,False,False,False] for x in s: ls = [a or b for a, b in zip(ls, [x.isalnum(), x.isalpha(), x.isdigit(), x.islower(), x.isupper()])] print(*ls, sep="\n")
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
String Validators
You are viewing a single comment's thread. Return to all comments →