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.
k=int(input())
for _ in range(k):
i=input()
s=set(i)
u=[j for j in i if j.isupper()]
d=[j for j in i if j.isdigit()]
if len(i)==10 and len(s)==10 and i.isalnum() and len(u)>1 and len(d)>2:
print("Valid")
else:
print("Invalid")
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Validating UID
You are viewing a single comment's thread. Return to all comments →