Skip to main content

Calculator with basic functions: Add, Subtract, Multiply, Divide, Nth-root, ability to reset to 0

Project description

Basic Calculator

Installation

to use the package in your notebook:

!pip install basic-calculator-101==1.3

from calculator.calculator import Calculator

Usage

  • calculator = Calculator()

  • Addition: calculator.add(6)

  • Subtraction: calculator.subtract(3)

  • Multiplication: calculator.multiply(2)

  • Division: calculator.divide(5)

  • Take (n) root of number: calculator.nth_root(16)

  • Memory of last result: calculator.reset_memory()

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

basic-calculator-101-1.3.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file basic-calculator-101-1.3.tar.gz.

File metadata

  • Download URL: basic-calculator-101-1.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for basic-calculator-101-1.3.tar.gz
Algorithm Hash digest
SHA256 a0539f569cd86d302923882628c76778945f74d9154d66ac26bd6bb73d3fd0d3
MD5 b04b759d5da631220b90e552df9eca3e
BLAKE2b-256 57ea8a9c364529f87d47ad893559006b79bd9e44710c9ec80b377c8597598751

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page