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-np

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)) # 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

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.3.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.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: samir_the_calculator_np-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 89724f4c521f8a64d655928d7f833f4f8be4b999094185885f90f7fe56952719
MD5 e538e302a023bcfe9645d7c40dd94ae2
BLAKE2b-256 ef0f402cf023c1ecaae95a9c802d012ad5505293528057d56b3866b7b04a4c44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for samir_the_calculator_np-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 41d686ffbd4a3b01703059401a1556b0557dbf9e26db0994546d49f7fc41a3ee
MD5 cf404724405c81f35d8600998a4505ef
BLAKE2b-256 1a00cf44be2af9c0b81c2f3207f93c41b5f9b4509beed1b91eb4609cd399f0c2

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