Skip to main content

A fully functional calculator by Sagar Kandel

Project description

Samir's Calculator

A fully functional calculator by Samir Neupane 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.2.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.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sagar_the_calculator-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4425d4331dbda30a5070ca5e62b903528559a8c7017ab10bbcffe1ff4ca67d1c
MD5 8b73cb2a61c1278318abf232cf637242
BLAKE2b-256 a9f423463bf87e8a26baf3607682cd463af1279f1b497c79e45277b4c6e9def0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sagar_the_calculator-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b5020b2e2ad35f5280e736ba8a7410bc19586db9ef4349e8a5b09b242a55fc81
MD5 04752310cdbca9ccd4693d23e82c9daa
BLAKE2b-256 eb6e67c867bcda4ea1cf285c278e40c35839df4c63091dbd58cfe1d1d8413947

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