def six_digit(password):
    """Check if password has 6 digits

    Parameters
    ----------
    password : int
        password number

    Returns
    -------
    is_six_dig: bool
        True if password has six digits, False if not
    """

    # Test if password is a 6 digit number
    if password > 99999 and password < 1000000:
        return True
    else:
        return False