Question: python flask 2 Web Calculator[40 points Write a Flask application whose index page contains a form similar to the one shown in Figure 2. The

python flask

python flask 2 Web Calculator[40 points Write a Flask application whose index

2 Web Calculator[40 points Write a Flask application whose index page contains a form similar to the one shown in Figure 2. The user should be able to enter two numbers, and choose the desired operation. Once the user clicks submit, your application should redirect to /result/ (e.g., /result/add) and there it should display the result to the user, along with a link back to the index page. Your application should check for invalid inputs s.?., it needs to ensure the inputs are integers or floats) and redirect to another page(e.g., /result/error/) where an error message will be displayed to the user, with a link back to the index page. Your application should also feature custom error pages for 404, 403 and 500 status codes (Contents of these pages are up to you). Your design elements should be decoupled from the Python code, and the overall design needs to be modular. You should concentrate on avoiding repeating code as much as possible First number: Second number Add Subtract O Multiply O Divide Submit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!