Quote:re?
I can't do it. Regular expressions are my weakness.
Neah, let's get sadistic:
def check(password): test = (str.isdigit, str.isupper, str.islower) good_enough = all(any(f(p) for p in password) for f in test) return len(password) >= 8 and good_enoughNote: if you try to turn the above into a professor and you don't know basic python they will get very suspicious.