def median(): user_input = request.args.get('input') user_input = list(map(int, user_input.split(','))) results = calculator.median(user_input) return jsonify({'output': results}), HTTPStatus.OK
def median(): # user_input = user_input = list(map(int, user_input.split(','))) results = calculator.median(user_input) return jsonify({'output':results}), HTTPStatus.OK
def get_mean_median(): user_input = request.get_json()['input'] results = calculator.mean(user_input) + calculator.median(user_input) return jsonify({"output": results}), HTTPStatus.OK