Implement solve(data, mode) using Python's math and statistics modules:
"circle_area" → data is a radius; return the area of the circle (π × r²)."hypotenuse" → data is [a, b]; return the hypotenuse of a right triangle (√(a²+b²))."mean" → return the arithmetic mean of the list data."median" → return the median of the list data."variance" → return the variance of the list data.Examples
solve(5, "circle_area") → 78.539...solve([3, 4], "hypotenuse") → 5.0solve([1, 2, 3, 4, 5], "mean") → 3.0Sample tests