import re password=str(input()) def detection(password): if len(password)<=8: return False m=re.compile(r'\d+') if m.search(password)==None: return False n=re.compile(r'[a-z]+') if n.search(password)==None: return False b=re.compile(r'[A-Z]+') if b.search(password)==None: return False else: return True print(detection(password))
zhangZHAN123
True