You are viewing a single comment's thread. Return to all comments →
n = int(input()) for i in range(n): UID = input() if len(UID) == 10 and UID.isalnum() and len(set(UID)) == 10: uppercase_count = sum(1 for char in UID if char.isupper()) number_count = sum(1 for char in UID if char.isdigit()) if uppercase_count >= 2 and number_count >= 3: print('Valid') else: print('Invalid') else: print('Invalid')
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 →