def safe_div(dividend, divisor, divide_by_zero_value=0):
    """Return the result of division, allowing the divisor to be zero."""
    return dividend / divisor if divisor != 0 else divide_by_zero_value