def mode(): user_input = request.form.get('input') user_input = list(map(int, user_input)) results = calculator.mode(user_input) return jsonify({'output': results}), HTTPStatus.OK
def mode(): # user_input = user_input = list(map(int, user_input)) results = calculator.mode(user_input) return jsonify({'output':results}), HTTPStatus.OK