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

Uploaded Source

File details

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

File metadata

  • Download URL: justinascalculator-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 55a41afbab1d969945e7a380f460f97228aed59c4f336b93cc4650b45608b039
MD5 918dfa983d28b794d04aae23efaf9d4c
BLAKE2b-256 6b41c8b110008ef02ee4b36f3824f36b77fa58b2cd069e42ec3db71dd2f783c4

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