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 numbers multiplication(float or int): multiply numbers division(float or int): divides numbers nth_root(float or int): takes the (n)'th root of numbers power(float or int): raises numbers 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.9.tar.gz (3.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: justinascalculator-0.0.9.tar.gz
  • Upload date:
  • Size: 3.0 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.9.tar.gz
Algorithm Hash digest
SHA256 31e547afa2a99cedda419346a0d45d16d662b112ad0125f21118f736d1317869
MD5 40489684390ed9d86b97aa6c28f8a6af
BLAKE2b-256 594580fd3aca4753fe36e9b7526d5a02307877b0c079b073959c1083e9ae0d4e

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