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.5.tar.gz (2.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: justinascalculator-0.0.5.tar.gz
  • Upload date:
  • Size: 2.2 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.5.tar.gz
Algorithm Hash digest
SHA256 e5c7885fa7727e8d37e4556dcbdf8dafe86ab80429fa2be21368862a2c327151
MD5 4b90eec15578798408dba09afa24334b
BLAKE2b-256 3fa2228703f1100a8c0f512521a75101d98b84d2387bdbd6fd54c062c03fce5f

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