You are viewing a single comment's thread. Return to all comments →
def uid_validator(uid): uid = uid.strip() return ( 'Valid' if ( re.fullmatch(r'^[0-9a-zA-Z]¨{10}', uid) and len(re.findall(r'[A-Z], uid) >=2) and len(re.findall(r'[0-9], uid) >= 3) and len(set(uid) == 10 ) else 'Invalid )
this command is not possible i will try it
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.
Validating UID
You are viewing a single comment's thread. Return to all comments →
this command is not possible i will try it