Skip to main content

A small example package

Project description

Calculator Package

The Calculator package provides a Calculator class that allows you to perform basic arithmetic operations and manipulate a memory value.

Installation

To install the Calculator package, you can use pip:

pip install calculator-package

Usage

First, import the Calculator class from the package:

from calculator_package import Calculator

Create a Calculator instance:

calc = Calculator()

Perform calculations using the available methods:

calc.add(5)
calc.subtract(2)
calc.multiply(3)
calc.divide(2)
calc.root(2)

Access the current memory value:

print("Memory:", calc.memory)

Reset the memory:

calc.reset_memory()
print("Memory after reset:", calc.memory)

Refer to the docstrings in the source code for detailed information on each method.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request on the GitHub repository.

License

This package is licensed under the MIT License.

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

turingproject-0.0.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

turingproject-0.0.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file turingproject-0.0.3.tar.gz.

File metadata

  • Download URL: turingproject-0.0.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for turingproject-0.0.3.tar.gz
Algorithm Hash digest
SHA256 95461e4b76f6d6d7e10fc687cb363f0bcc551deebd7cd53ab1ee7314c6d23045
MD5 91cc0118c685095b5edc3c65eebacbff
BLAKE2b-256 2a8d31c093a3f8b940ddd4d63c2454caa12801e6288c64c87f7bc57802b5f980

See more details on using hashes here.

File details

Details for the file turingproject-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: turingproject-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for turingproject-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eeabc61faf603efd77a2b9363458e14e73da31c7f09004b7bd3fbad113fe2187
MD5 39714ba592a3c6bfc82bb7f027e7145a
BLAKE2b-256 cc08c921dd70dc6dbdeddc477b0639f8783baf184fa5ecc5972932fb37700e48

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