MIN_PASSWORD_MSG = 'Password\'s length must greater or equal to %s'
MAX_PASSWORD_MSG = 'Password\'s length must lower or equal to %s'
VALID = 'valid'


def validate_password(password: str, min_len: int, max_len: int):
    if len(password) > max_len:
        return MAX_PASSWORD_MSG % max_len
    return MIN_PASSWORD_MSG % min_len if len(password) < min_len else VALID

d295fca8dc846d41c934a46caa0543ac074b37a2
<mask token>

<mask token>


def validate_password(password: str, min_len: int, max_len: int):
    if len(password) > max_len:
        return MAX_PASSWORD_MSG % max_len
    return MIN_PASSWORD_MSG % min_len if len(password) < min_len else VALID

MIN_PASSWORD_MSG = "Password's length must greater or equal to %s"
MAX_PASSWORD_MSG = "Password's length must lower or equal to %s"
VALID = 'valid'


def validate_password(password: str, min_len: int, max_len: int):
    if len(password) > max_len:
        return MAX_PASSWORD_MSG % max_len
    return MIN_PASSWORD_MSG % min_len if len(password) < min_len else VALID

MIN_PASSWORD_MSG = 'Password\'s length must greater or equal to %s'
MAX_PASSWORD_MSG = 'Password\'s length must lower or equal to %s'
VALID = 'valid'


def validate_password(password: str, min_len: int, max_len: int):
    if len(password) > max_len:
        return MAX_PASSWORD_MSG % max_len
    return MIN_PASSWORD_MSG % min_len if len(password) < min_len else VALID
