def is_acceptable_password(password: str) -> bool: if len(password) > 6: fl = False for i in password: if i in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']: fl = True return fl else: return False print(is_acceptable_password("muchlonger5"))