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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mymathpkg22-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39fa6a6eb95083e16a2c48223e3785c0f47b0c139e20638905322e2c8c3117be |
|
MD5 | 6493055f25fb91c2820da3b3ccfefb9d |
|
BLAKE2b-256 | 7ba815483e19e785ca1676e45dcd51c135f4f9cb3c6e489f89c47c17668e431d |