Skip to main content

A fully functional calculator by Sujata timalsina

Project description

Sujata's Calculator

A fully functional calculator by sujata timalsina with history tracking.

Installation

pip install sujata-the-calculator

Python Usage

from sujata_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

sujata_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

sujata_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.

sujata_the_calculator-1.0.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sujata_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 sujata_the_calculator-1.0.3.tar.gz
Algorithm Hash digest
SHA256 18563bc756f958adf63ce22931dde2fcf2ec4cead9ab30b35c9c9e9edd38690b
MD5 ed2ea332a4aa9b0202f52bf35a79ca83
BLAKE2b-256 805aca5647a185579aa06242e99532e39056a7ccf36b9c71449f8a3bc2047975

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sujata_the_calculator-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4e1f730b0f314e2d3abe411fca2782384ae08c8f5aef8b7c875c77ca1301b696
MD5 f0a5acb50dbd5eb63edabbafd4c45f2e
BLAKE2b-256 ea9e7eb8378cb8becb1b04a7b5f2c9513c633587be44dc223dba292861c1b61f

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