Skip to main content

A fully functional calculator by Sagar Kandel

Project description

Sagar's Calculator

A fully functional calculator by Sagar kandel with history tracking.

Installation

pip install sagar-the-calculator

Python Usage

from sagar_the_calculator import Calculator

calc = Calculator() print(calc.add(5, 3)) # 8 print(calc.subtract(10, 4)) # 6 print(calc.multiply(3, 7)) # 21 print(calc.divide(20, 4)) # 5.0 print(calc.power(2, 8)) # 256p print(calc.square_root(81)) # 9.0 print(calc.percentage(200, 15)) # 30.0 print(calc.absolute(-42)) # 42 calc.print_history() # shows all past operations

Command Line

sagar_calc

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sagar_the_calculator-1.0.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sagar_the_calculator-1.0.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file sagar_the_calculator-1.0.3.tar.gz.

File metadata

  • Download URL: sagar_the_calculator-1.0.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for sagar_the_calculator-1.0.3.tar.gz
Algorithm Hash digest
SHA256 4346b537a9ad78edb6d22a616428e7a35407a8e68894d18a75fad9e0ea12dd60
MD5 56ead43782f81456e26ce2a759c80993
BLAKE2b-256 bb8c522b71fb46384cf95b69ceb5019fc2691bbca8a14bf16192e39e088a92d6

See more details on using hashes here.

File details

Details for the file sagar_the_calculator-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sagar_the_calculator-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0aaf651a5be004896f92df6deec305c7639475aa8464a38cc44746b475097903
MD5 2c9d5ebf4031bbe93c2c3a139581b238
BLAKE2b-256 3707110779dafacc76442e93a23c57c64f9591a4aba6b5e4e0e556e9b9505d3c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page