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.2.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.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: turingproject-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 04c6c878fdd85a6aa9fbad607b757bc4eb55c69bb23527667f9a50e41df13c3e
MD5 2c9fd0a34d42364b818ca03b45c5a76c
BLAKE2b-256 0c31874809f264e557ac399bc471912bc7af448f0e35faa432b655a63297d182

See more details on using hashes here.

File details

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

File metadata

  • Download URL: turingproject-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f100190117c4db2f11bd54de43aa65a888d60cc2fc6689415c1a3191082f85b6
MD5 362c6277de5e0ca186eadfca6037b873
BLAKE2b-256 62b0f283ddb9b63882138401980a104b3d64b0ff2409ae23d04edf117456a9d2

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