def safe_zero_division(n, d): return n / d if d else 0