Skip to main content

A fully functional calculator by Samir Neupane

Project description

Samir's Calculator

A fully functional calculator by Samir Neupane with history tracking.

Installation

pip install samir_the_calculator

Python Usage

from samir_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)) # 256 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

samir_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

samir_the_calculator_np-1.0.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

samir_the_calculator_np-1.0.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: samir_the_calculator_np-1.0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for samir_the_calculator_np-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d73268d80881abad95540623a754e2d616700396ef75ce7dc2f98ffb27e57698
MD5 d3e64832f3a375c7d321623a5a16104f
BLAKE2b-256 9411d4404a8f69bcb62b384c7c5137a4a4bde6943ce2739cf7fcbe9c2324b1de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for samir_the_calculator_np-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 63aaed7e3d4ba0eee95f8f1ab2dbd5e9a87eb83f36d549cd0ca41b71b1231f9d
MD5 813900ea50389000248234a7ac3d2330
BLAKE2b-256 27dfaf325d8c3fefbf704a790b453993bb6b496da175969d21de18eef98204c4

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