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.
why is this code not working, can someone explain why?
# Enter your code here. Read input from STDIN. Print output to STDOUTimportren=int(input())regPat=r'^(?=(.*[A-Z]){2,})(?=(.*\d){3,})(?!.*(.).*\1)[a-zA-Z0-9]{10}$'for_inrange(n):ifre.match(regPat,input()):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 →
why is this code not working, can someone explain why?