Skip to main content

Simple calculator package project work

Project description

My Math package 2022

This is a project work Python Mastery for Turing college's Data Wrangling with Python module. The purpose of this package is to practise OOP-based coding, testing and creating Python package.

The package is a simple calculator that has addition, substraction, multiplication, division, nth root of a number and reset functions. The calculator used float data-type in input and output values.

After initalizing a new calculator-object, the object will start with a value zero. All the operations are done for this value that is stored in the object.


Setup

>>>pip install mymathpkg22

Sample Execution

Start the calculator with importing the calculator module and initalizing the calculator-object.

>>>from mymathpkg22 import calculator
>>>new_calculator_object = calculator.Calculator()

Adding two.

>>> new_calculator_object.add(2)
2.0

Subtracting three.

>>> new_calculator_object.subtract(3)
-1.0

Dividing with two.

>>> new_calculator_object.divide(2)
-0.5

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

mymathpkg22-1.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

mymathpkg22-1.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file mymathpkg22-1.0.1.tar.gz.

File metadata

  • Download URL: mymathpkg22-1.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for mymathpkg22-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2fd2658150359acd3ce3213f55a1230d88b3226dcb028e1bc53a1ec149a3ffe6
MD5 8863fba8bf5b5948a8d315ae988a8cf9
BLAKE2b-256 49c8c87ec8f0582fd366bfe1dd622b7f2af2bc6dcedd6f8feb869ea1dc5d5d6c

See more details on using hashes here.

File details

Details for the file mymathpkg22-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: mymathpkg22-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for mymathpkg22-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39fa6a6eb95083e16a2c48223e3785c0f47b0c139e20638905322e2c8c3117be
MD5 6493055f25fb91c2820da3b3ccfefb9d
BLAKE2b-256 7ba815483e19e785ca1676e45dcd51c135f4f9cb3c6e489f89c47c17668e431d

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