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

Uploaded Source

File details

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

File metadata

  • Download URL: justinascalculator-0.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 d58ec2526f91888701ede91729e4d031b03401527132a155ae56818282b8404c
MD5 1245c2d21eaa08e29536ad5e29b7fcff
BLAKE2b-256 06640ec16abb1de7b0d38c04743047695dda916f7796c2c3640e4fc2f751ae4c

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