You are viewing a single comment's thread. Return to all comments →
Python 3
def minimumNumber(n, password): count = 0 special_characters = "!@#$%^&*()-+" if not any(char.isdigit() for char in password): count += 1 if not any(char.islower() for char in password): count += 1 if not any(char.isupper() for char in password): count += 1 if not any(char in special_characters for char in password): count += 1 min_length = max(0, 6 - n) return max(count, min_length)
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 3