#Homework 2 This is a homework assignment to get used to using Flask and writing Python Web applications. This is a very simple web application and it will be expanded on in future assignments.
- Write a web app that will take input from a user.
- Gather the name and two parameters from the visitor: value1 and value2.
- If you perform a GET on calculate, those two values will be added together.
- If you perform a POST on /calculate, those two values will be multiplied together.
- Return the answers in a table, showing value1, value2, the operation performed, and the result.
- Add error handling, make sure value1 and value2 are numbers; if they’re text, do something else up o you.
- Put this all in a virtualenv, make a requirements.txt.
Install with:
pip install git+https://github.com/DaisyMacNcheese/Lesson2.git
name: Your name, any text
value1: integer
value2: integer
##Author DaisyMacNcheese
##Copyright and licensing information Do what you wish with this codes.