Implement solve(a, b) that:
a / b (float division) if b != 0.None if b == 0 (catch the ZeroDivisionError).TypeError with message "Inputs must be numbers" if either argument is not an int or float.Examples
solve(10, 2) → 5.0solve(7, 0) → Nonesolve("a", 2) → raises TypeError("Inputs must be numbers")In JavaScript / TypeScript return null for a zero divisor and throw new TypeError('Inputs must be numbers'). Note that JavaScript never throws on division by zero — 7 / 0 is Infinity — so the zero case is a guard, not a catch.
Sample tests