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.1.tar.gz (1.6 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.1-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: samir_the_calculator_np-1.0.1.tar.gz
  • Upload date:
  • Size: 1.6 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.1.tar.gz
Algorithm Hash digest
SHA256 8e21fde274431b3c333f78651a0266863e81fcef12396eb3b1959bfc8f0a9a20
MD5 d15c671fb176bec217ee71e5bf96ad23
BLAKE2b-256 293c10d85d2cbfed712f01aa5a6afadd7ed19cc8acc489a04459f3b812dd5350

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for samir_the_calculator_np-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d10fec6be35e81aa715320b8e79d4847890797cf0f6e842fba04572b4c61b8fc
MD5 4ea3b07dc29a0d43710f8b30261bd95b
BLAKE2b-256 241096110b23d98100d344945e8ea99b00502f098be4ea0774840b18ea114fa8

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