A basic calculator program built using Python and Tkinter.
This calculator program allows users to perform addition, subtraction, multiplication, and division operations. It supports decimal numbers and provides a user-friendly interface with buttons for numbers 0-9 and common mathematical operators.
- Make sure you have Python installed on your system.
- Clone this repository or download the source code.
- Install the required dependencies by running the following command.
- Run the calculator program by executing the following command:
python calculator.py
- Click on the number buttons (0-9) to input numbers into the calculator.
- Click on the operator buttons (+, -, *, /) to perform corresponding operations.
- To calculate the result, click on the = button.
- The result will be displayed in the calculator's interface.
- To clear the input and start a new calculation, click on the clear button.
The calculator's user interface upon launching the program, displaying all the buttons and the input/display area.
Entering a series of numbers (e.g., 123.45) to demonstrate the calculator's ability to handle decimal values.
Performing a basic arithmetic operation (e.g., 5 + 3) and displaying the resulting calculation on the interface.
Error handling in action, displaying an appropriate error message (e.g., division by zero) when encountering an error.