Skip to main content

Calculator class package with basic functions

Project description

#Calculator

Create instances of calculator as a class in python.

###Functions included:

  • add - sums calculator memory with provided value.
  • minus - subtracts the entered value from calculator memory.
  • multiply - multiplies calculator memory by the input value.
  • divide - devides the calculator memory by the input value.
  • root - takes n root from the calculator memory value (square root is taken when no input given).
  • reset - Resets calculator instance memory to zero.

Each function adjusts the calculator memory, as well as returns the new value.

###Installation TBU

pip install calculator

###Usage TBU

import calculator calc_obj = Calculator()

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

calculator_rm-0.0.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

calculator_rm-0.0.1-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page