def check(pw): # length check if len(pw) < 9: return False # type check typeA, typeB, typeC, typeD = 0, 0, 0, 0 flag = False for char in pw: if ord("a") <= ord(char) <= ord("z"): typeA = 1 elif ord("A") <= ord(char) <= ord("Z"): typeB = 1 elif o...