/Calculator

This is a basic calculator project written in Python with Tkinter library. It supports addition, subtraction, multiplication, division, and square root. The UI is designed with simple buttons and labels for ease of use. The calculator also has the ability to be controlled through keyboard inputs.

Primary LanguagePython

Calculator Application

This is an application for a calculator made in Python using the tkinter module. This calculator can perform basic operations such as addition, subtraction, multiplication, and division. It also has an exponentiation button for calculating the square of the number, and a square root button for calculating the square root of the number.

Screenshot

python

Features

  • Basic operations such as addition, subtraction, multiplication, and division
  • Exponentiation button for calculating the square of the number
  • Square root button for calculating the square root of the number
  • Clear button for clearing the display
  • Displays both the current expression and the total expression
  • Keyboard support

Prerequisites

  • Python 3.x
  • tkinter module

Installation

  • Clone the repository
git clone https://github.com/prathameshparit/Calculator.git

Run the Python file

python calculatortkinter.py

Usage

  • Enter a number or select a number from the buttons on the calculator.
  • Select an operator (+, -, *, /) from the buttons on the calculator.
  • Enter another number or select another number from the buttons on the calculator.
  • Select the equals (=) button to calculate the result.
  • To calculate the square of the number, select the exponentiation (^) button, then enter the exponent.
  • To calculate the square root of the number, select the square root (√) button.
  • To clear the display, select the clear (C) button.
  • Keyboard support is available - enter the number or operator directly from the keyboard.