Skip to main content

A calculator.

Project description

Calculator

Perform basic math operations

PyPI Version

Calculator performs:

  • addition
  • subraction
  • multiplication
  • division
  • n root of a number

Installation

pip install calculator_ab

Usage

Initializing the Calculator:

>>> from calculator_ab import Calculator
>>> calculator = Calculator()

An example of adding the number:

>>> calculator.add(5)

An example of subtraction:

>>> calculator.subtract(4)

An example of multiplication:

>>> calculator.multiply(2)

An example of division:

>>> calculator.divide(3)

An example of n root:

>>> calculator.n_root(2)

Reseting the memory:

>>> calculator.reset()

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Make sure to add or update tests as appropriate.

Use Black for code formatting and Conventional Commits for commit messages.

Changelog

License

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

calculator_ab-0.4.6.tar.gz (1.6 kB view hashes)

Uploaded Source

Built Distribution

calculator_ab-0.4.6-py2.py3-none-any.whl (1.9 kB view hashes)

Uploaded Python 2 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