Skip to main content

Simple calculator

Project description

This is a simple calculator, that can do addition, subtraction, multiplication, division, raising by power and taking the (n) root of a number.

Introduction This package was built as a Turing College task for 1.5 subproject. Each action updates the number in calculator's memory and returns result.

Usage Functions: memory: returns or sets a number in memory reset_memory: resets memory to 0 addition(float or int): adds number to memory subtraction(float or int): subtract number from memory multiplication(float or int): multiply number from memory division(float or int): divides number form memory nth_root(float or int): takes the (n)'th root from memory power(float or int): raises number by power

Installation:

Install the package from pypi using: pip install justinascalculator

Initialise from calculator.Calculator import Calculator calculator = Calculator()

License This project is licensed under https://opensource.org/licenses/MIT

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

justinascalculator-0.0.6.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file justinascalculator-0.0.6.tar.gz.

File metadata

  • Download URL: justinascalculator-0.0.6.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 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 justinascalculator-0.0.6.tar.gz
Algorithm Hash digest
SHA256 a73fbb25a78e7e148850a061cc9451deae5a11121896827ec65d60501171ad43
MD5 89b7bd919ca34297a23b8d75d957eeaa
BLAKE2b-256 91fc0d0eb737fac1acaf2887e40a4623f632cf4c90bd194210fa5016f1939207

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