Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 1.55 KB

Calculator_README.md

File metadata and controls

51 lines (31 loc) · 1.55 KB

CALCULATOR_CODSOFT

TASK2.PYTHON Calculator

This is a simple calculator GUI application built using Python and the Tkinter library. The application provides basic calculator functionality, including arithmetic operations, square roots, and raising numbers to the power of 2 and 3.

Features

. User-friendly GUI interface.

. Perform addition, subtraction, multiplication, and division operations.

. Calculate square roots and raise numbers to the power of 2 and 3.

. Immediate feedback on button clicks.

. Display of results in a text entry field.

. Error handling for invalid input.

Requirements

. Python 3.x

. Tkinter library (usually included with Python)

Usage

1.Clone the repository to your local machine: git clone: https://github.com/PEGASUS2026/python_calculator_codsoft.git

2.Navigate to the project directory: cd calculator-gui

3.Run the calculator application using Python: python calculator.py

Steps

1.The calculator GUI will open, displaying the numeric buttons and operations.

2.Click the buttons to input numbers and perform calculations.

3.The text entry field at the top displays the input and results of operations.

4.Use the numeric buttons, operation buttons (+, -, *, /), and special buttons (C, √, x², x³) as needed.

5.Click the "=" button to calculate the result of the entered expression.

6.If there's an error or invalid input, the calculator will display "Error" in the text entry field.

Credits

This project was developed by Rajath Kumar V. You can find me on GitHub.

License

This project is licensed under the MIT License.