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.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46b8c2433b3a3360a4d7d10b1010aa72261088bf3e5485fd696269db6b4d2f06 |
|
MD5 | 4b40ddafc2b8772553635dcd750b3f39 |
|
BLAKE2b-256 | d331a088e2e791ef322fe647ea8c3c12a4459253d4ade18e9c4c0df2b86329b1 |