Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 1.93 KB

File metadata and controls

58 lines (34 loc) · 1.93 KB

Calculator Project

This project is a simple graphical calculator application built using Python's tkinter library. The calculator supports basic arithmetic operations including addition, subtraction, multiplication, division, and modulus. It also supports the use of parentheses for grouping expressions.

Screenshot of Code

Features

  • Basic arithmetic operations: addition, subtraction, multiplication, division, and modulus.
  • Supports parentheses for grouping expressions.
  • Clear button to reset the input.
  • Equals button to evaluate the expression.

Project Structure

  • calculator.py: The main Python file containing the logic and GUI for the calculator.

Dependencies

This project requires Python and the tkinter library, which is included with Python by default.

Installation

  1. Ensure you have Python installed on your machine. You can download Python from python.org.

  2. Clone this repository or download the calculator.py file.

How to Run

  1. Open a terminal or command prompt.

  2. Navigate to the directory where the calculator.py file is located.

  3. Run the following command to start the calculator:

python calculator.py

Screenshot of the Calculator GUI(Final Output)

The output of the Calculator GUI will be similar to above.

References Utilised:

1.Creating A Calculator Using Tkinter | Python Tkinter GUI Tutorial

2.SOLID Principles: Improve Object-Oriented Design in Python

3.Python OOPs Concepts

4.Python Exception Handling

License

The assignment is distributed under the MIT License. Read the LICENSE file for more details.