You are viewing a single comment's thread. Return to all comments →
Python
special_characters = "!@#\$%\^&*()\-+" patterns = [r'\d', r'[a-z]', r'[A-Z]', rf'[{special_characters}]'] def minimumNumber(n, password): res = len([1 for pattern in patterns if not re.search(pattern, password)]) res += max(0, 6 - (len(password) + res)) return res
Seems like cookies are disabled on this browser, please enable them to open this website
Strong Password
You are viewing a single comment's thread. Return to all comments →
Python