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.0.tar.gz (3.2 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.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: samir_the_calculator_np-1.0.0.tar.gz
  • Upload date:
  • Size: 3.2 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.0.tar.gz
Algorithm Hash digest
SHA256 93fb24be893890c80f00f785459183236a788ee8b6250e6b7661773b3bd399df
MD5 f40a0d87db557c72deb0c29ae23e8609
BLAKE2b-256 7698d4145949b17eae91d9911a9a34acd6002ae05f986de5d4e692a6adf9a9fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for samir_the_calculator_np-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2c0b0d2e8fe5a6b85e5a71b238a5560790dc790c918490a609a62d6de51a1cf
MD5 4e70038b984c67ce2368e69c0501fe9c
BLAKE2b-256 01ab9549b48e5e727483aefb6ea75e333340b10bd207ce78b6e42a20a7f0403e

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