You are viewing a single comment's thread. Return to all comments →
I'm done with regex, and people who talks bad things about oneliners.
print("\n".join(["Valid" if len(list(filter(lambda x: str(x).isupper(), list(uid)))) >= 2 and len(list(filter(lambda x: str(x).isdigit(), list(uid)))) >= 3 and bool(all([uid.count(i) == 1 for i in uid])) else "Invalid" for uid in [input() for _ in range(int(input()))]]))
Those who are willing to dislike the solution please head over to the regex solution here.
Seems like cookies are disabled on this browser, please enable them to open this website
Decorators 2 - Name Directory
You are viewing a single comment's thread. Return to all comments →
I'm done with regex, and people who talks bad things about oneliners.
Those who are willing to dislike the solution please head over to the regex solution here.