This is a basic web calculator built using Flask, a Python web framework. The application allows users to perform simple arithmetic operations such as addition, subtraction, multiplication, and division.
- Addition: Performs the addition of two numbers.
- Subtraction: Performs the subtraction of the second number from the first.
- Multiplication: Performs the multiplication of two numbers.
- Division: Performs the division of the first number by the second (handling division by zero).
-
Clone the repository to your local machine:
git clone https://github.com/your-username/flask-calculator.git
-
Navigate to the project directory:
cd flask-calculator
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
-
Open your web browser and go to http://localhost:5000 to access the calculator.
- Enter the first number in the "Number 1" input field.
- Enter the second number in the "Number 2" input field.
- Select the desired operation from the dropdown menu.
- Click the "Calculate" button to see the result.
If you'd like to contribute to this project, feel free to fork the repository and submit a pull request. Issues and feature requests can be submitted through the GitHub issue tracker.
This project is licensed under the MIT License.
Make sure to replace "your-username" in the clone URL with your actual GitHub username. Also, include a LICENSE
file if you have a specific license for your project.