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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

calculator_ab-0.5.0-py2.py3-none-any.whl (2.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file calculator_ab-0.5.0.tar.gz.

File metadata

  • Download URL: calculator_ab-0.5.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for calculator_ab-0.5.0.tar.gz
Algorithm Hash digest
SHA256 9f5c854b3ffea62fac3416e40f15b7f379ded52f82c8ada24b35747ae8a7031c
MD5 93dc15f69ba5fde0cd7a97a5ffadfd2f
BLAKE2b-256 779e9ff37de6f7b3f81944a587a5b713e2a5d8fed055bdb9300d7498965fa8cd

See more details on using hashes here.

File details

Details for the file calculator_ab-0.5.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for calculator_ab-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 df3df006c97f222819b83d86a661527ef051a972decf9cfacfb1d7987f02c501
MD5 eec62e0c02c181b8db694a2569ede7f0
BLAKE2b-256 386303c4926f1778a29cfae7500310853991535ff8ee9f3c37f9047a7e41d432

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